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

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x2a4], eax
mov eax, dword [esp + 0x2ac]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x24], eax
call fcn.00415029
lea esi, [esp + 0x78]
call fcn.00403030
call fcn.00414a0e
xor esi, esi
cmp eax, esi
jne 0x41329a
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
call fcn.00414a0e
cmp eax, esi
jne 0x4132bd
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
call fcn.00414a0e
cmp eax, esi
jne 0x4132e0
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
add edi, 0x10
mov dword [esp + 0x18], edi
call fcn.00414a0e
cmp eax, esi
jne 0x413305
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebp, eax
add ebp, 0x10
mov dword [esp + 0x30], ebp
call fcn.00414a0e
cmp eax, esi
jne 0x41332a
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
add ebx, 0x10
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x24], esi
jne 0x4133fd
mov esi, 0x46e620
call fcn.00405780
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41336c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x78]
call fcn.004032e0
lea ecx, [esp + 0x64]
call fcn.00415206
xor al, al
jmp 0x413b4a
mov ecx, dword [0x480048]
cmp dword [ecx - 0xc], esi
jne 0x413540
push 0x206
lea eax, [esp + 0xae]
xor edx, edx
push esi
push eax
mov word [esp + 0xb4], dx
call fcn.00434200
add esp, 0xc
push 0x104
lea ecx, [esp + 0xac]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xa8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x413450
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xac]
push edx
mov ecx, 0x480048
call fcn.00401f90
mov eax, dword [0x480048]
push 0x5c
push eax
call fcn.00432ad9
add esp, 8
cmp eax, esi
jne 0x41348b
or eax, 0xffffffff
jmp 0x413493
sub eax, dword [0x480048]
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x480048
call fcn.00402540
push eax
mov ecx, 0x480048
call fcn.00401940
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4134cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x480048]
push ecx
push str._supdate_
push 0x480044
call fcn.00401e30
mov edx, dword [0x480044]
add esp, 0xc
push edx
call fcn.00405860
mov edi, dword [0x480044]
add esp, 4
call fcn.004060e0
push str.logs
lea eax, [esp + 0x20]
push 0x480048
push eax
call fcn.00403810
mov edi, dword [eax]
add esp, 0xc
call fcn.004060e0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413540
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x64]
call fcn.00406610
mov eax, dword [esp + 0x6c]
cmp eax, esi
jne 0x4135a3
mov dword [0x47fd78], 0x14
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41357b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413597
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x41338b
cmp eax, esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x1c], esi
jle 0x41355f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jl 0x413b63
cmp ecx, eax
jge 0x413b63
mov edx, dword [esp + 0x68]
lea eax, [edx + ecx*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00401940
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x50]
push str.http:__
push edx
call fcn.004038f0
lea ecx, [esp + 0x4c]
add esp, 0xc
push ecx
mov edi, eax
call fcn.00414560
add esp, 4
push eax
mov ecx, 0x480040
call fcn.00401940
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413628
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413648
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.versionlist.enc
lea ecx, [esp + 0x58]
push 0x480040
push ecx
call fcn.00403810
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
add esp, 0xc
push edx
push 0x50
push eax
lea esi, [esp + 0x1c]
call fcn.004065a0
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413695
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jne 0x41373a
push str.__failed
push str.versionlist.enc
push 0x480040
lea edx, [esp + 0x64]
push str.Query_ModifyTime__
push edx
mov dword [0x47fd78], 0x21
call fcn.004038f0
add esp, 0xc
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
jmp 0x413998
push str.versionlist.enc
lea ecx, [esp + 0x4c]
push 0x480044
push ecx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00401940
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41377b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.versionlist.ini
lea ecx, [esp + 0x64]
push 0x480044
push ecx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
call fcn.00401940
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4137bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.versionlist.ini
lea ecx, [esp + 0x54]
push 0x480048
push ecx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
call fcn.00401940
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4137fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push ebp
call fcn.00405bd0
lea ecx, [esp + 0x18]
add esp, 4
push ecx
mov ebx, str.DateTime
mov edi, str.ServerConfig
mov esi, ebp
call fcn.004074d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esp, 4
push edx
push eax
call fcn.00432a46
add esp, 8
test eax, eax
je 0x413a03
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0xa4], 0
call fcn.00401940
push str.versionlist.enc
lea edx, [esp + 0x3c]
push 0x480040
push edx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x84]
call fcn.00401940
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
push 0x50
push 0x47fd78
lea ebx, [esp + 0x84]
call fcn.00406920
add esp, 0xc
test eax, eax
jne 0x413924
push str.__failed
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x4c]
push str.Download__
push eax
mov dword [0x47fd78], 0x1d
call fcn.004038f0
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41391e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
jmp 0x413998
mov eax, dword [esp + 0x18]
push ebp
call fcn.00405bd0
add esp, 4
test eax, eax
jne 0x4139d2
push str.__failed
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push str.Unpack__
push edx
mov dword [0x47fd78], 0x16
call fcn.004038f0
add esp, 0xc
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4139b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x4135b2
mov ebx, dword [esp + 0x20]
jmp 0x41355f
mov ecx, dword [esp + 0x10]
push ecx
push str.DateTime
mov esi, str.ServerConfig
mov ebx, ebp
call fcn.00406c50
mov edi, dword [esp + 0x28]
mov eax, 1
call fcn.00405e70
mov edx, edi
push edx
mov eax, ebp
call fcn.00405c50
add esp, 0xc
mov ecx, dword [esp + 0x24]
push 0x104
push ecx
push 0x47fd80
mov dword [0x47fd78], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.__succ
push 0x480040
lea edx, [esp + 0x34]
push str.Init_UpdateVersion_to_address__
push edx
mov byte [0x47fd75], 1
call fcn.004038f0
add esp, 0xc
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ad6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413af6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x78]
call fcn.004032e0
lea ecx, [esp + 0x64]
call fcn.00415206
mov al, 1
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431fec
add esp, 0x2a8
ret
call fcn.0041492f
int3