Function at 0x401140
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xa4
lea ecx, [esp + 0x20]
push ebx
push esi
push edi
call fcn.004028f0
push str.ini_gameversion.ini
lea ecx, [esp + 0x30]
call fcn.00402a50
test al, al
jne 0x401178
push str.Load_version_file_error
push 0
call fcn.00404080
add esp, 8
jmp 0x401432
lea eax, [esp + 0x50]
lea ecx, [esp + 0x2c]
push eax
push str.guid
push str.game_info
call fcn.00403fa0
test al, al
jne 0x4011a8
push str.Read_GUID_error
push 0
call fcn.00404080
add esp, 8
jmp 0x401432
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push str.gameversion
push str.game_info
lea ecx, [esp + 0x38]
call fcn.00403a80
test al, al
jne 0x4011e0
push str.Read_version_error
push 0
call fcn.00404080
add esp, 8
jmp 0x401432
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401cf0
lea ecx, [esp + 0xc]
call fcn.00401cf0
lea ecx, [esp + 0x14]
push ecx
push str.errorCaption
push str.game_info
lea ecx, [esp + 0x38]
call fcn.00403a80
test al, al
jne 0x401247
push str.Read_version_error
push 0
call fcn.00404080
add esp, 8
jmp 0x401420
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004021a0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push str.errorInfo
push str.game_info
call fcn.00403a80
test al, al
jne 0x401285
push str.Read_version_error
push 0
call fcn.00404080
add esp, 8
jmp 0x401420
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.004021a0
lea ecx, [esp + 0x2c]
call fcn.00402e50
lea ecx, [esp + 0x2c]
call fcn.004029e0
lea edx, [esp + 0x50]
push edx
push 0x401550
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x4012de
lea ecx, [esp + 0xc]
call fcn.00402370
push 0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00402370
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401379
mov esi, dword [esp + 0xbc]
push esi
call fcn.004015b0
add esp, 4
test al, al
je 0x401379
lea ecx, [esp + 0x70]
call fcn.00401000
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb4]
push 0x401450
push edi
push esi
push ebx
push 0x258
mov ecx, dword [esp + 0x64]
push 0x320
push 0
push 0
mov edx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
push ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x80], esp
mov dword [eax + 8], ecx
mov ecx, esp
mov dword [eax + 0xc], edx
lea eax, [esp + 0x94]
push eax
call fcn.00401d60
lea ecx, [esp + 0xa4]
call fcn.004019e0
test al, al
jne 0x4013a3
lea ecx, [esp + 0x70]
call fcn.00401040
lea ecx, [esp + 0xc]
call fcn.00401e10
lea ecx, [esp + 0x10]
call fcn.00401e10
lea ecx, [esp + 0x2c]
call fcn.00402970
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xa4
ret 0x10
push edi
lea ecx, [esp + 0x74]
call fcn.00401c90
push esi
mov ecx, 0x5de4f4
call fcn.004021a0
xor ecx, ecx
push str._window
mov edx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.MSVCRT.dll_strstr]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
test eax, eax
setne al
mov byte [esp + 0x30], al
lea eax, [esp + 0x20]
push eax
push 0x5de480
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
call fcn.004014c0
add esp, 0x10
lea ecx, [esp + 0x70]
call fcn.00401040
lea ecx, [esp + 0xc]
call fcn.00401e10
lea ecx, [esp + 0x10]
call fcn.00401e10
lea ecx, [esp + 0x2c]
call fcn.00402970
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa4
ret 0x10