Function at 0x401f50
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44523e
mov eax, dword fs:[0]
push eax
sub esp, 0x978
mov eax, dword [0x453c00]
xor eax, esp
mov dword [esp + 0x970], eax
push ebx
push esi
push edi
mov eax, dword [0x453c00]
xor eax, esp
push eax
lea eax, [esp + 0x988]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x68], esi
call fcn.0041960d
call fcn.00402fc0
test eax, eax
jne 0x4028f9
push esi
call fcn.00402e60
test eax, eax
je 0x402187
push 0x30c
xor ebx, ebx
lea edi, [esi + 0xa4]
push ebx
push edi
call fcn.0042aed0
mov eax, dword [esi + 0x48]
add esp, 0xc
cmp eax, ebx
je 0x401fe3
push eax
push 0x30c
push edi
call fcn.00428546
add esp, 0xc
push 4
push 0x44a7a4
push edi
mov dword [esi + 0x48], edi
call fcn.00428172
add esp, 0xc
test eax, eax
jne 0x4021c5
add dword [esi + 0x48], 4
mov edi, dword [esi + 0x48]
push 0x33
push 8
mov dword [esp + 0x18], vtable.AxAnsiString.0
call fcn.004181b0
mov esi, dword [0x446104]
push eax
call esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov ebx, edi
xor eax, eax
lea edi, [esp + 0x10]
call fcn.0040ec10
xor edi, edi
mov dword [esp + 0x990], edi
push 0x33
push 8
mov dword [esp + 0x4c], vtable.AxAnsiString.0
call fcn.004181b0
push eax
call esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
xor eax, eax
xor ebx, ebx
lea edi, [esp + 0x44]
call fcn.0040ec10
mov byte [esp + 0x990], 1
push 0x7c
lea eax, [esp + 0x14]
call fcn.004122d0
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 0xffffffff
je 0x402162
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
call fcn.00411e90
cmp dword [esp + 0x1c], ebx
mov ebx, 0x44a7a2
je 0x4020ab
mov ebx, dword [esp + 0x14]
mov eax, esi
lea edi, [esp + 0x44]
call fcn.0040ec10
push 0
push 0
push 0
mov ecx, edi
call fcn.00411e90
cmp dword [esp + 0x50], 0
mov eax, 0x44a7a2
je 0x4020d3
mov eax, dword [esp + 0x48]
push 1
push eax
mov eax, 0x104
lea ecx, [esp + 0x4c]
call fcn.00411d20
push eax
call fcn.00412ad0
add esp, 0xc
push 0
push 0
push 0
lea ecx, [esp + 0x50]
call fcn.00411e90
cmp dword [esp + 0x50], 0
mov esi, 0x44a7a2
je 0x40210c
mov esi, dword [esp + 0x48]
call fcn.00413f20
cmp eax, 1
jne 0x40218e
mov esi, dword [0x446330]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x7d0
jae 0x402162
mov ebx, dword [0x4462cc]
push 0
push 0
push 0
lea ecx, [esp + 0x50]
call fcn.00411e90
cmp dword [esp + 0x50], 0
mov eax, 0x44a7a2
je 0x402150
mov eax, dword [esp + 0x48]
push eax
call ebx
test eax, eax
jne 0x40218e
call esi
sub eax, edi
cmp eax, 0x7d0
jb 0x402131
mov byte [esp + 0x990], 0
lea ecx, [esp + 0x44]
call fcn.0040ebc0
mov dword [esp + 0x990], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040ebc0
xor eax, eax
jmp 0x402c81
mov eax, dword [esp + 0x40]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x68]
add dword [eax + 0x48], ecx
mov byte [esp + 0x990], 0
lea ecx, [esp + 0x44]
call fcn.0040ebc0
mov dword [esp + 0x990], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040ebc0
xor ebx, ebx
jmp 0x4021ea
mov eax, dword [esi + 0x48]
push 4
push str._hs:
push eax
call fcn.00428172
add esp, 0xc
test eax, eax
jne 0x4021ea
add dword [esi + 0x48], 4
mov dword [esi + 0x3cc], 1
push 0x33
push 8
mov dword [esp + 0x60], vtable.AxAnsiString.0
call fcn.004181b0
push eax
call dword [0x446104]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
xor eax, eax
xor ebx, ebx
lea edi, [esp + 0x58]
call fcn.0040ec10
mov dword [esp + 0x990], 2
call fcn.0041b972
mov esi, dword [eax + 8]
mov eax, 0x104
mov ecx, edi
call fcn.00411d20
push 0x104
push eax
push esi
call dword [0x4462e8]
push ebx
push ebx
push ebx
mov ecx, edi
call fcn.00411e90
mov edi, dword [esp + 0x64]
mov bl, 0x5c
lea eax, [esp + 0x58]
call fcn.00412410
sub edi, eax
dec edi
lea esi, [esp + 0x58]
call fcn.0040f0b0
mov eax, esi
lea ecx, [esp + 0x6c]
call fcn.0040eb60
mov byte [esp + 0x990], 3
push 0
push 0
push 0
lea ecx, [esp + 0x78]
call fcn.00411e90
mov ebx, dword [esp + 0x78]
push str._serverlist_serverlist.ini
lea esi, [esp + 0x70]
call fcn.0040ed60
push 0
push 0
push 0
mov ecx, esi
call fcn.00411e90
cmp dword [esp + 0x78], 0
mov eax, 0x44a7a2
je 0x4022bd
mov eax, dword [esp + 0x70]
mov edi, dword [0x44638c]
push eax
call edi
test eax, eax
jne 0x402309
push eax
mov edx, str.serverlist.ini
mov ecx, 0x44a7e8
call fcn.004034a0
add esp, 4
mov byte [esp + 0x990], 2
lea ecx, [esp + 0x6c]
call fcn.0040ebc0
mov dword [esp + 0x990], 0xffffffff
lea ecx, [esp + 0x58]
call fcn.0040ebc0
xor eax, eax
jmp 0x402c81
lea eax, [esp + 0x58]
lea ecx, [esp + 0x30]
call fcn.0040eb60
mov byte [esp + 0x990], 4
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.00411e90
mov ebx, dword [esp + 0x3c]
push 0x44a7f8
lea esi, [esp + 0x34]
call fcn.0040ed60
push 0
push 0
push 0
mov ecx, esi
call fcn.00411e90
cmp dword [esp + 0x3c], 0
mov eax, 0x44a7a2
je 0x40235c
mov eax, dword [esp + 0x34]
push eax
call edi
push 0
test eax, eax
jne 0x40238d
mov edx, str.Site.ini
mov ecx, 0x44a7e8
call fcn.004034a0
add esp, 4
mov byte [esp + 0x990], 3
lea ecx, [esp + 0x30]
call fcn.0040ebc0
jmp 0x4022dd
push str._serverlist_serverlist.ini
lea edx, [esp + 0x88]
push edx
call fcn.0040d840
mov byte [esp + 0x990], 5
push 0
push 0x44a7f8
lea eax, [esp + 0xac]
push eax
call fcn.0040d840
mov byte [esp + 0x990], 6
push str.Update
push 0x44a81c
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0040dda0
mov byte [esp + 0x990], 7
mov esi, eax
call fcn.00412510
mov edi, dword [esp + 0x68]
mov ebx, eax
add edi, 0x3b0
xor eax, eax
mov dword [esp + 0x7c], edi
call fcn.0040ec10
mov byte [esp + 0x990], 6
lea ecx, [esp + 0x10]
call fcn.0040ebc0
xor ebx, ebx
push ebx
push ebx
push ebx
mov ecx, edi
call fcn.00411e90
cmp dword [edi + 0xc], ebx
jne 0x402477
push ebx
mov edx, str.Url_NewUpdate
mov ecx, 0x44a7e8
call fcn.004034a0
add esp, 4
mov byte [esp + 0x990], 5
lea ecx, [esp + 0xa4]
call fcn.0040d930
mov byte [esp + 0x990], 4
lea ecx, [esp + 0x80]
call fcn.0040d930
mov byte [esp + 0x990], 3
lea ecx, [esp + 0x30]
call fcn.0040ebc0
jmp 0x4022dd
lea ecx, [esp + 0xa4]
call fcn.0040dfb0
mov edi, edx
cmp edi, ebx
mov esi, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
jl 0x4024b2
jg 0x40249a
cmp esi, 0x1f
jbe 0x4024a8
cmp edi, ebx
jl 0x4024b2
jg 0x4024a8
cmp esi, 0x3e8
jb 0x4024b2
cmp edi, ebx
jg 0x402509
jl 0x4024b2
cmp esi, ebx
jae 0x402509
xor ebx, ebx
lea eax, [esp + 0x10]
call fcn.0040ead0
mov byte [esp + 0x990], 8
push edi
push esi
push 0x44a85c
lea ecx, [esp + 0x1c]
call fcn.0040f0f0
add esp, 0xc
push ebx
push ecx
lea esi, [esp + 0x18]
call fcn.00412510
add esp, 4
mov edx, eax
mov ecx, 0x44a7e8
call fcn.004034a0
add esp, 4
mov byte [esp + 0x990], 6
mov ecx, esi
call fcn.0040ebc0
jmp 0x402439
cmp edi, ebx
mov dword [esp + 0x40], ebx
jg 0x40252c
jl 0x402518
cmp esi, 0x1f
ja 0x40251e
mov dword [esp + 0x40], ebx
jmp 0x402534
cmp edi, ebx
jl 0x402534
jg 0x40252c
cmp esi, 0x3e8
jb 0x402534
mov dword [esp + 0x40], 1
xor ebx, ebx
lea eax, [esp + 0x20]
call fcn.0040ead0
mov byte [esp + 0x990], 9
push esi
push 0x44a86c
lea ecx, [esp + 0x28]
call fcn.0040f0f0
add esp, 8
push str.WebServer
push ecx
lea esi, [esp + 0x28]
call fcn.00412510
add esp, 4
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x8c]
call fcn.0040dda0
mov byte [esp + 0x990], 0xa
mov esi, eax
call fcn.00412510
mov ebx, eax
xor eax, eax
lea edi, [esp + 0x20]
call fcn.0040ec10
mov byte [esp + 0x990], 9
lea ecx, [esp + 0x10]
call fcn.0040ebc0
mov esi, edi
call fcn.00411d00
cmp dword [esp + 0x40], 0
jne 0x402630
test al, al
je 0x4026af
xor ebx, ebx
lea eax, [esp + 0x10]
call fcn.0040ead0
mov byte [esp + 0x990], 0xb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push 0x44a880
lea ecx, [esp + 0x1c]
call fcn.0040f0f0
add esp, 0xc
push ebx
push ecx
lea esi, [esp + 0x18]
call fcn.00412510
add esp, 4
mov edx, eax
mov ecx, 0x44a7e8
call fcn.004034a0
add esp, 4
mov byte [esp + 0x990], 9
mov ecx, esi
call fcn.0040ebc0
mov byte [esp + 0x990], 6
lea ecx, [esp + 0x20]
call fcn.0040ebc0
jmp 0x402439
test al, al
je 0x4026af
push str.WebServer
push 0x44a898
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x8c]
call fcn.0040dda0
mov byte [esp + 0x990], 0xc
mov esi, eax
call fcn.00412510
mov ebx, eax
xor eax, eax
lea edi, [esp + 0x20]
call fcn.0040ec10
mov byte [esp + 0x990], 9
lea ecx, [esp + 0x10]
call fcn.0040ebc0
mov esi, edi
call fcn.00411d00
test al, al
je 0x4026af
push 0
mov edx, 0x44a8a0
mov ecx, 0x44a7e8
call fcn.004034a0
add esp, 4
mov byte [esp + 0x990], 6
mov ecx, edi
call fcn.0040ebc0
jmp 0x402439
push 1
push ecx
lea esi, [esp + 0x28]
call fcn.00412510
mov esi, dword [esp + 0x84]
add esp, 4
push eax
push str._webserver_
push 0
push esi
call fcn.00412160
call fcn.00411ce0
mov edi, eax
dec edi
mov eax, esi
call fcn.00411f30
cmp al, 0x2f
jne 0x4026ed
xor edi, edi
call fcn.0040f0b0
push 0x103
lea eax, [esp + 0x569]
push 0
push eax
mov byte [esp + 0x570], 0
call fcn.0042aed0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x461]
push 0
push ecx
mov byte [esp + 0x468], 0
call fcn.0042aed0
add esp, 0xc
push 0x104
lea edx, [esp + 0x568]
push edx
push 0
call dword [0x4462e8]
lea eax, [esp + 0x564]
push 0x5c
push eax
call fcn.00428386
lea ecx, [esp + 0x56c]
push ecx
push str.HALL.EXE::STARTUPDATE::__s_::978DF9BF_3C03_4b2c_9843_922E5F13AAA2
lea edx, [esp + 0x46c]
push 0x104
push edx
mov byte [eax], 0
call fcn.00427ed2
add esp, 0x18
cmp byte [esp + 0x45c], 0
lea eax, [esp + 0x45c]
je 0x4027a4
cmp byte [eax], 0x5c
jne 0x40278d
mov byte [eax], 0x7c
mov cl, byte [eax]
mov dl, cl
sub dl, 0x61
cmp dl, 0x19
ja 0x40279c
add cl, 0xe0
mov byte [eax], cl
inc eax
cmp byte [eax], 0
jne 0x402785
mov edi, dword [0x4462ec]
lea eax, [esp + 0x45c]
push eax
push 0
push 0x1f0003
call edi
mov esi, dword [esp + 0x68]
mov dword [esi + 0x3c8], eax
test eax, eax
je 0x40281b
cmp dword [esi + 0x3cc], 0
jne 0x40281b
mov ebx, dword [0x4462d8]
jmp 0x4027e0
push 0
push 0x35
push 0x44a90c
call fcn.0041a1ed
cmp eax, 2
je 0x40261a
mov ecx, dword [esi + 0x3c8]
push ecx
call ebx
lea edx, [esp + 0x45c]
push edx
push 0
push 0x1f0003
call edi
mov dword [esi + 0x3c8], eax
test eax, eax
jne 0x4027e0
call fcn.0040ab90
call fcn.0040ac30
test eax, eax
jne 0x402898
mov byte [esp + 0x990], 6
lea ecx, [esp + 0x20]
call fcn.0040ebc0
mov byte [esp + 0x990], 5
lea ecx, [esp + 0xa4]
call fcn.0040d930
mov byte [esp + 0x990], 4
lea ecx, [esp + 0x80]
call fcn.0040d930
mov byte [esp + 0x990], 3
lea ecx, [esp + 0x30]
call fcn.0040ebc0
mov byte [esp + 0x990], 2
lea ecx, [esp + 0x6c]
call fcn.0040ebc0
mov dword [esp + 0x990], 0xffffffff
lea ecx, [esp + 0x58]
jmp 0x402c77
test byte [0x45a678], 1
jne 0x4028cf
or dword [0x45a678], 1
mov byte [esp + 0x990], 0xd
push 0x45a308
call fcn.00403fd0
push 0x445620
call fcn.004282b3
add esp, 4
mov byte [esp + 0x990], 9
mov dword [esi + 0x20], 0x45a308
call fcn.00404880
test eax, eax
jne 0x402829
mov byte [esp + 0x990], 6
lea ecx, [esp + 0x20]
call fcn.0040ebc0
jmp 0x402439
call fcn.0041b972
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x48]
push 0x33
push 8
mov dword [esp + 0x28], vtable.AxAnsiString.0
call fcn.004181b0
push eax
call dword [0x446104]
mov dword [esp + 0x24], eax
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
call fcn.0040ec10
mov dword [esp + 0x990], 0xe
mov ebx, str._Repair:
mov eax, edi
call fcn.00412250
or edi, 0xffffffff
cmp eax, edi
jne 0x402968
mov dword [esp + 0x990], edi
lea ecx, [esp + 0x20]
call fcn.0040ebc0
xor eax, eax
jmp 0x402c81
xor ebx, ebx
push ebx
push 0x44a7a2
push str._Repair:
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.00412160
push esi
call fcn.00402f10
test eax, eax
je 0x402951
push 0x103
lea ecx, [esp + 0x569]
push ebx
push ecx
mov byte [esp + 0x570], bl
call fcn.0042aed0
add esp, 0xc
lea edx, [esp + 0x564]
push edx
push 0x104
call dword [0x4462d4]
push 0x33
push 8
mov dword [esp + 0x38], vtable.AxAnsiString.0
call fcn.004181b0
push eax
call dword [0x446104]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
xor eax, eax
lea ebx, [esp + 0x564]
lea edi, [esp + 0x30]
call fcn.0040ec10
mov byte [esp + 0x990], 0xf
push 0
push 0
push 0
mov ecx, edi
call fcn.00411e90
mov ebx, dword [esp + 0x3c]
push str.QpRepair.exe
mov esi, edi
call fcn.0040ed60
lea eax, [esp + 0xec]
push eax
call fcn.00403fd0
mov byte [esp + 0x990], 0x10
xor ebx, ebx
push ebx
push ebx
push ebx
mov ecx, edi
call fcn.00411e90
mov esi, 0x44a7a2
cmp dword [esp + 0x3c], ebx
je 0x402a45
mov esi, dword [esp + 0x34]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
call fcn.00411e90
mov ecx, 0x44a7a2
cmp dword [esp + 0x2c], ebx
je 0x402a60
mov ecx, dword [esp + 0x24]
push esi
call fcn.0040a600
mov esi, dword [esp + 0x68]
mov ecx, dword [esi + 0x3c0]
push ecx
call dword [0x4462d8]
mov edx, dword [esi + 0x3c0]
push edx
call dword [0x4462dc]
push 0x103
lea eax, [esp + 0x461]
push ebx
push eax
mov byte [esp + 0x468], bl
call fcn.0042aed0
add esp, 0xc
push 0x207
lea ecx, [esp + 0x779]
push ebx
push ecx
mov byte [esp + 0x780], bl
call fcn.0042aed0
add esp, 0xc
push 0x103
lea edx, [esp + 0x671]
push ebx
push edx
mov byte [esp + 0x678], bl
call fcn.0042aed0
add esp, 0xc
push 0x104
lea eax, [esp + 0x460]
push eax
push ebx
call dword [0x4462e8]
push 0x104
lea ecx, [esp + 0x670]
push ecx
push str.COMSPEC
call dword [0x446314]
push 0x104
lea edx, [esp + 0x460]
push edx
mov eax, edx
push eax
call dword [0x446308]
push 0x44
lea ecx, [esp + 0xa8]
push ebx
push ecx
call fcn.0042aed0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x45c]
push eax
xor edx, edx
lea ecx, [esp + 0x670]
push ecx
mov word [esp + 0xdc], dx
lea edx, [esp + 0x77c]
push str._s__c_del__s
push edx
mov dword [esp + 0xb4], 0x44
mov dword [esp + 0xe0], 1
call fcn.00427b41
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xa8]
push ecx
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea edx, [esp + 0x794]
push edx
push ebx
call dword [0x44631c]
test eax, eax
jne 0x402bfc
push ebx
call dword [0x446340]
push eax
call dword [0x446318]
mov byte [esp + 0x990], 0xf
lea ecx, [esp + 0xec]
call fcn.004043c0
mov byte [esp + 0x990], 0xe
lea ecx, [esp + 0x30]
call fcn.0040ebc0
mov dword [esp + 0x990], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0040ebc0
xor eax, eax
jmp 0x402c81
mov esi, dword [0x446340]
push 0x80
call esi
mov edi, dword [0x44634c]
push eax
call edi
push 0x80
lea eax, [esp + 0x460]
push eax
call dword [0x4462f4]
mov ecx, dword [esp + 0x10]
push 0x40
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [0x4462d0]
push ebx
call esi
push eax
call dword [0x446318]
mov byte [esp + 0x990], 0xf
lea ecx, [esp + 0xec]
call fcn.004043c0
mov byte [esp + 0x990], 0xe
lea ecx, [esp + 0x30]
call fcn.0040ebc0
mov dword [esp + 0x990], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0040ebc0
mov eax, 1
mov ecx, dword [esp + 0x988]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x970]
xor ecx, esp
call fcn.004279c9
mov esp, ebp
pop ebp
ret