Function at 0x407fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e33a
mov eax, dword fs:[0]
push eax
sub esp, 0xef0
mov eax, dword [0x44901c]
xor eax, esp
mov dword [esp + 0xee8], eax
push ebx
push esi
push edi
mov eax, dword [0x44901c]
xor eax, esp
push eax
lea eax, [esp + 0xf00]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x2fc]
xor esi, esi
cmp byte [eax], 0
mov dword [esp + 0x18], edi
sete cl
mov dword [esp + 0x8c], eax
mov byte [eax], cl
mov dword [esp + 0xf08], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
lea eax, [edi + 0x244]
push 1
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0xf10], 1
call fcn.00404a70
mov ebx, eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
lea eax, [edi + 0x260]
push 1
push eax
lea eax, [esp + 0x74]
mov byte [esp + 0xf10], 2
call fcn.00404a70
add ebx, eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov byte [esp + 0xf08], 3
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
cmp ebx, ecx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x408097
call edi
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x24], ebx
mov ebx, ecx
jbe 0x4080b5
call edi
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x24], ebx
je 0x40817d
mov ebx, dword [esp + 0x24]
cmp ebx, ecx
mov dword [esp + 0x9c], 0
jb 0x4080e0
call edi
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
test esi, esi
mov ecx, dword [ebx]
mov dword [esp + 0x98], ecx
je 0x408134
mov ecx, eax
sub ecx, esi
sub edx, esi
sar ecx, 3
sar edx, 3
cmp ecx, edx
jae 0x408134
mov ecx, dword [esp + 0x84]
mov byte [esp + 0xb8], 0
mov edx, dword [esp + 0xb8]
push edx
push ecx
lea edx, [esp + 0xa0]
mov ecx, 1
mov esi, eax
call fcn.0040c740
lea eax, [esi + 8]
add esp, 8
mov dword [esp + 0x44], eax
jmp 0x408163
cmp esi, eax
mov ebx, eax
jbe 0x40813c
call edi
push ebx
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040b080
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
cmp ebx, ecx
jb 0x408175
call edi
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
add ebx, 4
jmp 0x40808f
xor esi, esi
xor eax, eax
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov byte [esp + 0xf08], 4
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
cmp ebx, ecx
jbe 0x4081b5
call edi
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x9c], ebx
lea esp, [esp]
cmp dword [esp + 0x70], ecx
mov ebx, ecx
jbe 0x4081da
call edi
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x9c], ebx
je 0x4082c5
mov edi, dword [esp + 0x9c]
cmp edi, ecx
mov dword [esp + 0xa4], 0
jb 0x40820f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
test esi, esi
mov ecx, dword [edi]
mov dword [esp + 0xa0], ecx
je 0x408263
mov ecx, eax
sub ecx, esi
sub edx, esi
sar ecx, 3
sar edx, 3
cmp ecx, edx
jae 0x408263
mov ecx, dword [esp + 0x84]
mov byte [esp + 0xac], 0
mov edx, dword [esp + 0xac]
push edx
push ecx
lea edx, [esp + 0xa8]
mov ecx, 1
mov esi, eax
call fcn.0040c740
lea eax, [esi + 8]
add esp, 8
mov dword [esp + 0x34], eax
jmp 0x408292
cmp esi, eax
mov ebx, eax
jbe 0x40826f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x3c]
call fcn.0040b080
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x74]
cmp edi, ecx
jb 0x4082a8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add edi, 4
mov dword [esp + 0x9c], edi
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jmp 0x4081c0
xor edi, edi
cmp dword [esp + 0x80], edi
jne 0x408408
mov esi, dword [esp + 0x18]
lea ecx, [esi + 0x2a8]
push ecx
mov ebx, 5
lea ecx, [esp + 0x98]
mov dword [esp + 0x200], ebx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], bl
mov edx, dword [esi + 0x2a4]
lea ebx, [esi + 0x294]
add edx, 1
cmp dword [ebx + 8], edx
ja 0x408318
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x408327
sub esi, eax
mov eax, dword [ebx + 4]
cmp dword [eax + esi*4], edi
jne 0x408342
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
cmp eax, edi
je 0x40835e
mov ecx, 0x86
lea esi, [esp + 0x1fc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
add dword [ebx + 0x10], 1
lea ecx, [esp + 0x94]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov ecx, dword [esp + 0x18]
push edi
push edi
push 0x410
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4083a0
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
je 0x4083bd
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
je 0x4083da
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x60]
cmp eax, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
je 0x4083f7
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
jmp 0x4094bf
mov ebx, dword [esp + 0x18]
mov esi, dword [ebx + 0x398]
cmp dword [ebx + 0x394], esi
lea edi, [ebx + 0x390]
mov dword [esp + 0x1c], edi
jbe 0x40842a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x28], eax
jbe 0x408440
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x4084de
mov ebx, dword [edi + 8]
mov ecx, ebx
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, ebx
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x28]
lea ecx, [eax + edx*4]
mov dword [esp + 0x7c], ecx
je 0x40849e
sub eax, esi
mov dword [esp + 0x94], eax
jmp 0x408480
mov edx, dword [esi]
mov ecx, dword [esp + 0x94]
lea eax, [esi + 4]
mov dword [esi + ecx], edx
add ecx, eax
push ecx
call fcn.0040c890
add esi, 0x14
cmp esi, ebx
jne 0x408480
mov ebx, dword [edi + 8]
mov esi, dword [esp + 0x7c]
cmp esi, ebx
je 0x4084d7
add esi, 8
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x4084bf
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
add esi, 0x14
lea edx, [esi - 8]
cmp edx, ebx
jne 0x4084b0
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x18]
mov dword [edi + 8], esi
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x94], esp
push eax
lea ecx, [esp + 0x50]
call fcn.0040ab90
lea eax, [ebx + 0x244]
push eax
lea esi, [esp + 0x100]
call fcn.0040c2d0
add esp, 0x14
push eax
mov esi, edi
mov byte [esp + 0xf0c], 6
call fcn.0040aac0
mov byte [esp + 0xf08], 4
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x408536
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x94], esp
push ecx
lea ecx, [esp + 0x40]
call fcn.0040ab90
lea eax, [ebx + 0x260]
push eax
lea esi, [esp + 0xec]
call fcn.0040c2d0
add esp, 0x14
push eax
mov esi, edi
mov byte [esp + 0xf0c], 7
call fcn.0040aac0
mov byte [esp + 0xf08], 4
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x40858e
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
lea eax, [ebx + 0x2a8]
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x200], 6
mov dword [esp + 0x208], edx
mov dword [esp + 0x58], eax
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
add ebx, 0x294
mov byte [esp + 0xf08], 8
mov eax, dword [ebx + 0x10]
add eax, 1
cmp dword [ebx + 8], eax
ja 0x4085e1
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x4085f0
sub esi, eax
mov ecx, dword [ebx + 4]
cmp dword [ecx + esi*4], 0
jne 0x40860c
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebx + 4]
add esp, 4
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40862a
mov ecx, 0x86
lea esi, [esp + 0x1fc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
add dword [ebx + 0x10], 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov ecx, dword [esp + 0x18]
xor esi, esi
push esi
push esi
push 0x410
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x88], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x58], esi
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x40867a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, esi
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 8]
cmp dword [eax + 4], esi
mov dword [esp + 0x50], edi
jbe 0x408696
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
cmp edi, esi
je 0x409389
cmp edi, dword [eax + 8]
jb 0x4086a9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
jbe 0x4086b7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x24], esi
jmp 0x4086c0
mov eax, dword [edi + 0xc]
cmp dword [edi + 8], eax
mov dword [esp + 0x90], eax
jbe 0x4086dc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x90]
cmp esi, eax
je 0x409136
cmp esi, dword [edi + 0xc]
jb 0x4086ef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], 1
cmp edi, dword [ecx + 8]
mov dword [esp + 0x1fc], 0xd
jb 0x408710
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x410], edx
jb 0x408724
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x410], eax
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 9
mov edx, dword [ebx + 0x10]
add edx, 1
cmp dword [ebx + 8], edx
ja 0x408757
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x408766
sub esi, eax
mov eax, dword [ebx + 4]
cmp dword [eax + esi*4], 0
jne 0x408782
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x4087a0
mov ecx, 0x86
lea esi, [esp + 0x1fc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x50]
add dword [ebx + 0x10], 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x410
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x24]
add eax, 1
cmp esi, dword [edi + 0xc]
mov dword [esp + 0x1fc], 8
mov dword [esp + 0x7c], eax
mov dword [esp + 0x204], eax
jb 0x408802
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
cmp edi, dword [ecx + 8]
mov eax, dword [esi]
mov dword [esp + 0x40c], eax
jb 0x40881a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x54]
mov edx, dword [edi]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x414], edx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 0xa
mov ecx, dword [ebx + 0x10]
add ecx, 1
cmp dword [ebx + 8], ecx
ja 0x40884d
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x40885c
sub esi, eax
mov edx, dword [ebx + 4]
cmp dword [edx + esi*4], 0
jne 0x408878
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x408896
mov ecx, 0x86
lea esi, [esp + 0x1fc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x50]
add dword [ebx + 0x10], 1
lea ecx, [esp + 0xc0]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x410
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x24]
cmp eax, dword [edi + 0xc]
jb 0x4088d8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
cmp edi, dword [ecx + 8]
jb 0x4088e7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x24]
mov esi, dword [edx]
test esi, esi
mov eax, dword [esp + 0x50]
mov edi, dword [eax]
jl 0x408936
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x288]
call eax
cmp esi, eax
jg 0x408936
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x278]
push 0
push 0x449034
push 0x4490fc
push 0
push esi
call eax
push eax
call sub.MSVCR80.dll___RTDynamicCast
add esp, 0x14
mov dword [esp + 0x80], eax
jmp 0x408941
mov dword [esp + 0x80], 0
push 0x40fba0
push 0x41ebc0
lea ecx, [esp + 0x194]
call dword [sym.imp.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDownloadSingleFile::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______cdecl___unsigned_int___bool____cdecl___unsigned_int__class_std::vector_struct_GameMgr::GMDownloadXml__class_std::allocator_struct_GameMgr::GMDownloadXml_____]
mov ecx, dword [esp + 0x80]
mov byte [esp + 0xf08], 0xb
mov eax, dword [ecx + 0x568]
push 1
push eax
lea ecx, [esp + 0x194]
call dword [sym.imp.K8DLUtils.dll_public:_bool___thiscall_GameMgr::GMDownloadSingleFile::Start_unsigned_int__bool_]
push 0x64
lea ecx, [esp + 0x190]
call dword [sym.imp.K8DLUtils.dll_public:_bool___thiscall_GameMgr::GMDownloadSingleFile::WaitForComplete_unsigned_int_]
test al, al
mov edi, dword [esp + 0x18]
jne 0x408abd
mov dl, byte [edi + 0x27d]
test dl, dl
jne 0x40914d
lea ecx, [esp + 0x18c]
mov dword [esp + 0x414], 9
call dword [sym.imp.K8DLUtils.dll_public:_unsigned_long_long_unsigned___int64____thiscall_GameMgr::GMDownloadSingleFile::GetTotalSize_void_]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x41c], eax
mov dword [esp + 0x420], edx
call dword [sym.imp.K8DLUtils.dll_public:_unsigned_long_long_unsigned___int64____thiscall_GameMgr::GMDownloadSingleFile::GetCompleteSize_void_]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x424], eax
mov dword [esp + 0x428], edx
call dword [sym.imp.K8DLUtils.dll_public:_unsigned_long_long_unsigned___int64____thiscall_GameMgr::GMDownloadSingleFile::GetSpeed_void_]
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x434], edx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 0xd
mov ecx, dword [ebx + 0x10]
add ecx, 1
cmp dword [ebx + 8], ecx
ja 0x408a2c
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x408a3b
sub esi, eax
mov edx, dword [ebx + 4]
cmp dword [edx + esi*4], 0
jne 0x408a57
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x408a75
mov ecx, 0x86
lea esi, [esp + 0x414]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
add dword [ebx + 0x10], 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0xf08], 0xb
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
push 0
push 0
push 0x410
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
lea ecx, [esp + 0x190]
call dword [sym.imp.K8DLUtils.dll_public:_bool___thiscall_GameMgr::GMDownloadSingleFile::WaitForComplete_unsigned_int_]
test al, al
je 0x408998
lea ecx, [esp + 0x18c]
call dword [sym.imp.K8DLUtils.dll_public:_bool___thiscall_GameMgr::GMDownloadSingleFile::IsSuccessful_void_]
test al, al
je 0x408fef
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x41c], eax
mov dword [esp + 0x420], eax
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 8]
mov dword [esp + 0x414], 0xa
jb 0x408b02
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
cmp esi, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x628], ecx
jb 0x408b1a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x54]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x628], edx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 0xe
mov ecx, dword [ebx + 0x10]
add ecx, 1
cmp dword [ebx + 8], ecx
ja 0x408b4d
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x408b5c
sub esi, eax
mov edx, dword [ebx + 4]
cmp dword [edx + esi*4], 0
jne 0x408b78
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x408b92
mov ecx, 0x86
lea esi, [esp + 0x414]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x10], 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0xf08], 0xb
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov esi, dword [esp + 0x18]
push 0
push 0
push 0x410
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0xa5c]
push eax
call fcn.00402a20
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0xa5c]
mov byte [esp + 0xf08], 0xf
mov eax, dword [ecx + 0x568]
push edx
push eax
lea eax, [esi + 0x2d4]
call fcn.004046c0
lea ecx, [esp + 0x18c]
call dword [sym.imp.K8DLUtils.dll_public:_wchar_t_const____thiscall_GameMgr::GMDownloadSingleFile::GetSetupFileName_void_]
push eax
lea ecx, [esp + 0x120]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x13c]
push ecx
mov byte [esp + 0xf10], 0x10
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFilePathUtils::FileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
push 0x431d7c
lea ecx, [esp + 0x158]
mov byte [esp + 0xf0c], 0x11
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x140]
push eax
mov byte [esp + 0xf14], 0x12
call dword [sym.imp.K8Common.dll_public:_static_unsigned_int___cdecl_GameMgr::GMStringUtils::FindNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
add esp, 0xc
cmp eax, dword [ecx]
je 0x408d81
mov eax, dword [esp + 0x158]
mov esi, 8
cmp dword [esp + 0x16c], esi
jae 0x408ca0
lea eax, [esp + 0x158]
push 0x431d84
push eax
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.K8Common.dll_public:_static_void___cdecl_GameMgr::GMStringUtils::ReplaceNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const___wchar_t_const__]
add esp, 0xc
lea ecx, [esp + 0x170]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0xf10], 0x13
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
mov byte [esp + 0xf08], 0x14
cmp dword [esp + 0x150], esi
mov ecx, dword [esp + 0x13c]
jae 0x408d04
lea ecx, [esp + 0x13c]
cmp dword [eax + 0x18], esi
jb 0x408d0e
mov eax, dword [eax + 4]
jmp 0x408d11
add eax, 4
push ecx
push eax
lea edx, [esp + 0x178]
push 0x431d88
push edx
call dword [sym.imp.K8Common.dll_public:_static_void___cdecl_GameMgr::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__]
add esp, 0x10
lea ecx, [esp + 0x100]
mov byte [esp + 0xf08], 0x13
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFilePathUtils::Rename_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
lea edx, [esp + 0x170]
push edx
lea ecx, [esp + 0x120]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x170]
mov byte [esp + 0xf08], 0x12
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [esp + 0x18]
add edi, 0x3a8
mov ecx, 0x10b
lea esi, [esp + 0xac4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x3a0]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x3a0]
lea ecx, [esp + 0x11c]
push ecx
mov ecx, edi
call edx
cmp byte [0x449f38], 0
mov byte [esp + 0x17], al
jne 0x408e89
cmp byte [esp + 0x17], 0
je 0x408ea3
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push 0x64
mov ecx, edi
call edx
test al, al
jne 0x408e89
mov al, byte [esi + 0x27d]
test al, al
jne 0x40927f
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
mov dword [esp + 0x844], 0xb
mov dword [esp + 0x84c], 0x64
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
cmp edx, dword [ecx + 8]
mov dword [esp + 0x850], eax
jb 0x408e2e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0xa58], ecx
jb 0x408e4a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x844]
push edx
mov dword [esp + 0xa58], ecx
call fcn.00409d00
push 0
push 0
push 0x410
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [0x449f38], 0
je 0x408dc9
cmp byte [esp + 0x17], 0
je 0x408ea3
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
cmp eax, 0xffffffff
mov byte [esp + 0x17], 1
jne 0x408ea8
mov byte [esp + 0x17], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
cmp byte [esp + 0x17], 0
je 0x408f10
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1e4]
push ecx
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
mov byte [esp + 0xf08], 0x15
cmp dword [esp + 0x1f4], 0
je 0x408ef4
lea edx, [esp + 0x1e0]
push edx
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFileSystemUtils::RemoveDirectoryWithSubItems_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 4
lea ecx, [esp + 0x1e0]
mov byte [esp + 0xf08], 0x12
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add dword [esp + 0x28], 1
jmp 0x408f15
add dword [esp + 0x58], 1
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x1c]
mov cl, byte [esp + 0x17]
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x50]
cmp eax, dword [edx + 8]
mov dword [esp + 0x1fc], 0xc
mov byte [esp + 0x204], cl
jb 0x408f4c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x24]
cmp edi, dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x410], ecx
jb 0x408f68
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi]
lea eax, [esp + 0x1fc]
push eax
mov dword [esp + 0x410], edx
call fcn.00409d00
push 0
push 0
push 0x410
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x154]
mov byte [esp + 0xf08], 0x11
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x138]
mov byte [esp + 0xf08], 0x10
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x11c]
mov byte [esp + 0xf08], 0xf
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xa5c]
push ecx
mov byte [esp + 0xf0c], 0xb
call fcn.00404590
jmp 0x4090f1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
cmp ecx, dword [eax + 8]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1fc], 0xc
mov dword [esp + 0x208], edx
mov byte [esp + 0x204], 0
jb 0x409020
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x24]
cmp esi, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x410], edx
jb 0x40903c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0xc0]
mov dword [esp + 0x410], eax
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 0x16
mov edx, dword [ebx + 0x10]
add edx, 1
cmp dword [ebx + 8], edx
ja 0x40906f
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x40907e
sub esi, eax
mov eax, dword [ebx + 4]
cmp dword [eax + esi*4], 0
jne 0x40909a
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x4090b8
mov ecx, 0x86
lea esi, [esp + 0x1fc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov esi, 1
add dword [ebx + 0x10], esi
lea ecx, [esp + 0xbc]
mov byte [esp + 0xf08], 0xb
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
push 0
push 0
push 0x410
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
add dword [esp + 0x58], esi
lea ecx, [esp + 0x18c]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8DLUtils.dll_public_virtual:_void___thiscall_GameMgr::GMDownloadSingleFile::destructor_void_]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
cmp eax, dword [ecx + 0xc]
jb 0x409119
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x24], 8
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x88], edx
jmp 0x4086c0
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 8]
jb 0x409145
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 0x14
jmp 0x40867c
mov cl, byte [edi + 0x290]
test cl, cl
jne 0x409263
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
add edx, 1
cmp edi, dword [esi + 0xc]
mov dword [esp + 0x414], 0xe
mov dword [esp + 0x424], edx
mov dword [esp + 0x41c], eax
mov dword [esp + 0x420], ecx
jb 0x4091a0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax + 8]
mov edx, dword [edi]
mov dword [esp + 0x624], edx
jb 0x4091b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x628], ecx
push edx
lea ecx, [esp + 0xc8]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 0xc
mov eax, dword [ebx + 0x10]
add eax, 1
cmp dword [ebx + 8], eax
ja 0x4091eb
call fcn.0040b950
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x4091fa
sub esi, eax
mov ecx, dword [ebx + 4]
cmp dword [ecx + esi*4], 0
jne 0x409216
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebx + 4]
add esp, 4
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x409230
mov ecx, 0x86
lea esi, [esp + 0x414]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x10], 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0xf08], 0xb
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x410
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x18c]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8DLUtils.dll_public_virtual:_void___thiscall_GameMgr::GMDownloadSingleFile::destructor_void_]
xor esi, esi
jmp 0x40944b
mov edx, dword [esi + 0x3a0]
mov eax, dword [edx + 0x10]
lea ecx, [esi + 0x3a0]
call eax
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
add ecx, 1
mov dword [esp + 0x63c], ecx
mov ecx, dword [esp + 0x1c]
cmp ebx, dword [ecx + 8]
mov dword [esp + 0x62c], 0xe
mov dword [esp + 0x634], edx
mov dword [esp + 0x638], eax
jb 0x4092d5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x24]
cmp edi, dword [ebx + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x840], edx
jb 0x4092ed
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
lea ecx, [esp + 0x62c]
push ecx
mov dword [esp + 0x840], eax
call fcn.00409d00
xor edi, edi
push edi
push edi
push 0x410
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x154]
mov byte [esp + 0xf08], 0x11
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x138]
mov byte [esp + 0xf08], 0x10
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x11c]
mov byte [esp + 0xf08], 0xf
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea edx, [esp + 0xa5c]
push edx
mov byte [esp + 0xf0c], 0xb
call fcn.00404590
lea ecx, [esp + 0x18c]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8DLUtils.dll_public_virtual:_void___thiscall_GameMgr::GMDownloadSingleFile::destructor_void_]
jmp 0x40838f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x200], 7
mov dword [esp + 0x208], edx
mov dword [esp + 0x20c], eax
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::constructor_class_GameMgr::GMMutex_const__]
mov byte [esp + 0xf08], 0x17
mov edx, dword [ebx + 0x10]
add edx, 1
cmp dword [ebx + 8], edx
ja 0x4093d4
call fcn.0040b950
mov edi, dword [ebx + 0xc]
add edi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
xor esi, esi
cmp eax, edi
ja 0x4093e5
sub edi, eax
mov eax, dword [ebx + 4]
cmp dword [eax + edi*4], esi
jne 0x409400
push 0x218
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [ebx + 4]
mov edi, dword [edx + edi*4]
cmp edi, esi
je 0x40941a
mov ecx, 0x86
lea esi, [esp + 0x1fc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
add dword [ebx + 0x10], 1
lea ecx, [esp + 0x84]
mov byte [esp + 0xf08], 4
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutexLock::destructor_void_]
mov ecx, dword [esp + 0x18]
push esi
push esi
push 0x410
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x40945c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
je 0x409479
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
je 0x409496
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x60]
cmp eax, esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
je 0x4094b3
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x8c]
cmp byte [eax], 0
sete cl
mov byte [eax], cl
mov ecx, dword [esp + 0xf00]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xee8]
xor ecx, esp
call fcn.00429602
mov esp, ebp
pop ebp
ret