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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cb1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1921c
call fcn.0046bef0
mov eax, dword [0x4aff50]
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x19228], eax
call fcn.00425da0
mov edi, 0xf
mov dword [esp + 0x19234], ebx
mov dword [esp + 0x19c], edi
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
lea eax, [esp + 0x168]
push eax
mov byte [esp + 0x19238], 2
call fcn.00407d10
add esp, 4
push 1
push 0x493748
lea ecx, [esp + 0x170]
call fcn.00409780
mov edx, dword [0x4ae1a0]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d0c4
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x170]
call fcn.00409780
mov eax, dword [esp + 0x180]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x16c]
jae 0x40d0f9
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x1c0]
call fcn.00426030
test al, al
push esi
jne 0x40d194
push 0x60
call fcn.004014b0
add esp, 4
push eax
push 0x5f
call fcn.004014b0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x1c]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x180], esi
jb 0x40d14c
mov eax, dword [esp + 0x16c]
push eax
call fcn.004826a1
add esp, 4
cmp dword [esp + 0x19c], esi
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
jb 0x40d17a
mov ecx, dword [esp + 0x188]
push ecx
call fcn.004826a1
add esp, 4
mov dword [esp + 0x19c], edi
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
jmp 0x40d6e3
push str.PatchInfoFileUrl
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00404760
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x1923c], 3
call fcn.004258f0
mov ecx, dword [esp + 0x34]
neg al
sbb al, al
inc al
cmp ecx, esi
mov byte [esp + 0x13], al
mov byte [esp + 0x19234], 2
jb 0x40d1fa
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004826a1
mov al, byte [esp + 0x17]
add esp, 4
cmp al, bl
je 0x40d28c
push esi
push 0x62
call fcn.004014b0
add esp, 4
push eax
push 0x61
call fcn.004014b0
mov edx, dword [esp + 0x18]
add esp, 4
push eax
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x180], esi
jb 0x40d240
mov ecx, dword [esp + 0x16c]
push ecx
call fcn.004826a1
add esp, 4
cmp dword [esp + 0x19c], esi
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
jb 0x40d17a
mov edx, dword [esp + 0x188]
push edx
call fcn.004826a1
add esp, 4
mov dword [esp + 0x19c], edi
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
jmp 0x40d6e3
mov dword [esp + 0x1b8], edi
mov dword [esp + 0x1b4], ebx
mov byte [esp + 0x1a4], bl
push 0x14
push str.DefaultPatchInfoFile
lea ecx, [esp + 0x24]
mov byte [esp + 0x1923c], 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00404760
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x1923c], 5
call fcn.004258f0
cmp dword [esp + 0x34], esi
mov byte [esp + 0x19234], 4
jb 0x40d301
mov edx, dword [esp + 0x20]
push edx
call fcn.004826a1
add esp, 4
lea eax, [esp + 0x68]
push eax
call fcn.00409970
push 0x493778
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x19244], 6
call fcn.004098c0
lea edx, [esp + 0x1b0]
push edx
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x19250], 7
call fcn.00415c80
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x19240], 8
call fcn.00404540
cmp dword [esp + 0x54], esi
jb 0x40d36c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004826a1
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jb 0x40d38b
mov edx, dword [esp + 0x20]
push edx
call fcn.004826a1
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x19234], 4
jb 0x40d3b5
mov eax, dword [esp + 0x6c]
push eax
call fcn.004826a1
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00423c90
xor eax, eax
mov byte [esp + 0x220], bl
mov ecx, 0x63ff
lea edi, [esp + 0x221]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esp + 0x19c], esi
mov eax, dword [esp + 0x188]
mov byte [esp + 0x19234], 9
jae 0x40d3f7
lea eax, [esp + 0x188]
push 0x19000
lea ecx, [esp + 0x224]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00423e30
cmp eax, ebx
mov edi, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
jne 0x40d520
push 1
push 2
lea ecx, [esp + 0xf0]
call fcn.00415a50
push 0x49377c
push 0x3b7
push 0x4937a8
lea edx, [esp + 0xf4]
push str.Can_not_get_PatchServerInfo.xml_from_web_server_
push edx
mov byte [esp + 0x19248], 0xa
call fcn.00414b10
add esp, 8
push eax
call fcn.00414b10
add esp, 8
mov ecx, eax
call fcn.00415570
push eax
call fcn.00414b10
add esp, 8
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xec]
call fcn.00418fd0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x19234], 0xb
jb 0x40d493
mov eax, dword [eax + 4]
jmp 0x40d496
add eax, 4
push eax
push ebx
call fcn.00409700
push eax
call fcn.0041a2e0
mov eax, dword [esp + 0x60]
add esp, 0xc
cmp eax, esi
jb 0x40d4bb
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004826a1
add esp, 4
lea ecx, [esp + 0x134]
mov byte [esp + 0x19234], 9
call fcn.004143d0
lea ecx, [esp + 0x134]
mov dword [esp + 0x134], edi
call fcn.0047d779
cmp dword [esp + 0x1b8], esi
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x18], 0x19000
jae 0x40d501
lea eax, [esp + 0x1a4]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x224]
push ecx
push eax
call fcn.0041b360
add esp, 0xc
test al, al
jne 0x40d549
jmp 0x40d6ae
cmp dword [esp + 0x1b8], esi
mov ecx, dword [esp + 0x1a4]
jae 0x40d537
lea ecx, [esp + 0x1a4]
push eax
lea edx, [esp + 0x224]
push edx
push ecx
call fcn.0041ad90
add esp, 0xc
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x370]
mov ecx, dword [eax + 4]
add esi, 0x36c
push ecx
mov ecx, esi
mov dword [esp + 0x60], esi
call fcn.0040a1b0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0xb0]
mov dword [eax + 8], eax
call fcn.00426d70
lea edx, [esp + 0x220]
push edx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x19238], 0xc
call fcn.00428520
lea ecx, [esp + 0xb0]
call fcn.00426400
cmp eax, ebx
jne 0x40d701
push 1
push 2
lea ecx, [esp + 0xf0]
call fcn.00415a50
push str.__funcCUpdateDlg::GetPatchServerInfo_
push 0x3d1
push 0x493858
lea eax, [esp + 0xf4]
push str.Parsing_PatchServerInfo.xml_error_
push eax
mov byte [esp + 0x19248], 0xd
call fcn.00414b10
add esp, 8
push eax
call fcn.00414b10
add esp, 8
mov ecx, eax
call fcn.00415570
push eax
call fcn.00414b10
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xec]
call fcn.00418fd0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x19234], 0xe
jb 0x40d631
mov eax, dword [eax + 4]
jmp 0x40d634
add eax, 4
push eax
push ebx
call fcn.00409700
push eax
call fcn.0041a2e0
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.004036e0
lea ecx, [esp + 0x134]
mov byte [esp + 0x19234], 0xc
call fcn.004143d0
lea ecx, [esp + 0x134]
mov dword [esp + 0x134], edi
call fcn.0047d779
push 0x10
push 0x64
call fcn.004014b0
add esp, 4
push eax
push 0x63
call fcn.004014b0
mov edx, dword [esp + 0x18]
add esp, 4
push eax
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x19234], 9
call fcn.00413d80
lea ecx, [esp + 0x14]
mov byte [esp + 0x19234], 4
call fcn.00423c80
lea ecx, [esp + 0x1a0]
call fcn.004036e0
lea ecx, [esp + 0x168]
call fcn.004036e0
lea ecx, [esp + 0x184]
call fcn.004036e0
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x19234], 0xffffffff
call fcn.0041b9e0
xor al, al
jmp 0x40da92
push 0x4938cc
mov ecx, eax
call fcn.00426a70
mov edi, eax
cmp edi, ebx
mov dword [esp + 0xc], edi
je 0x40d991
jmp 0x40d721
mov edi, dword [esp + 0xc]
push 0x4938dc
mov ecx, edi
call fcn.004276f0
cmp eax, ebx
mov dword [esp + 0x60], eax
je 0x40d979
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
push 0x4938e0
mov ecx, edi
mov byte [esp + 0x19238], 0xf
call fcn.00426a70
mov edi, eax
cmp edi, ebx
je 0x40d8c6
push 0x4938f0
mov ecx, edi
call fcn.004276f0
lea ecx, [esp + 0x58]
push ecx
push str.Port
mov ecx, edi
mov esi, eax
mov dword [esp + 0x60], 0xffffffff
call fcn.00427720
push str.Path
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.004276f0
cmp esi, ebx
mov dword [esp + 0x38], eax
je 0x40d8ac
cmp dword [esp + 0x18], ebx
je 0x40d8ac
cmp eax, ebx
je 0x40d8ac
mov eax, 0xf
mov dword [esp + 0x1fc], eax
mov dword [esp + 0x1f8], ebx
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x21c], eax
mov dword [esp + 0x218], ebx
mov byte [esp + 0x208], bl
mov eax, esi
mov byte [esp + 0x19234], 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d7f4
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1ec]
call fcn.00404760
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x40]
call fcn.004050c0
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x19238], 0x11
call fcn.00416c30
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, 0x10
mov byte [esp + 0x19234], 0x10
jb 0x40d853
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004826a1
add esp, 4
mov esi, dword [esp + 0x38]
mov eax, esi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d870
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20c]
call fcn.00404760
lea edx, [esp + 0x1e4]
push edx
lea ecx, [esp + 0x6c]
call fcn.0041b720
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x19234], 0xf
call fcn.00409590
push str.Server
mov ecx, edi
call fcn.00426ab0
mov edi, eax
cmp edi, ebx
jne 0x40d763
mov esi, dword [esp + 0x5c]
sub esp, 0x10
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0041b650
mov ecx, dword [esp + 0x70]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0041b8b0
add esp, 0x18
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x19238], 0x12
call fcn.0041b820
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
mov byte [esp + 0x1923c], 0x13
call fcn.0041bc70
lea ecx, [esp + 0xa0]
call fcn.00409d90
cmp dword [esp + 0x9c], 0x10
jb 0x40d942
mov edx, dword [esp + 0x88]
push edx
call fcn.004826a1
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00409d90
lea ecx, [esp + 0x68]
mov byte [esp + 0x19234], 0xc
call fcn.00409d90
mov edi, dword [esp + 0xc]
push str.Zone
mov ecx, edi
call fcn.00426ab0
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x40d71d
mov eax, dword [esp + 0xe0]
cmp eax, ebx
mov byte [esp + 0x19234], 9
mov dword [esp + 0xb0], 0x493f88
je 0x40d9b8
push eax
call fcn.004826a1
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
call fcn.00426830
lea ecx, [esp + 0x14]
mov byte [esp + 0x19234], 4
call fcn.00423c80
mov eax, dword [esp + 0x1b8]
mov esi, 0x10
cmp eax, esi
jb 0x40da03
mov eax, dword [esp + 0x1a4]
push eax
call fcn.004826a1
add esp, 4
cmp dword [esp + 0x180], esi
mov edi, 0xf
mov dword [esp + 0x1b8], edi
mov dword [esp + 0x1b4], ebx
mov byte [esp + 0x1a4], bl
jb 0x40da36
mov ecx, dword [esp + 0x16c]
push ecx
call fcn.004826a1
add esp, 4
cmp dword [esp + 0x19c], esi
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
jb 0x40da64
mov edx, dword [esp + 0x188]
push edx
call fcn.004826a1
add esp, 4
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x19c], edi
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
mov dword [esp + 0x19234], 0xffffffff
call fcn.0041b9e0
mov al, 1
mov ecx, dword [esp + 0x1922c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19224]
call fcn.0046bf5e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret