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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1002b4b0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0xf
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.1001043e
mov edx, dword [ebp + 8]
add esp, 4
push eax
add edx, 0x60
push edx
push str._update_c.ini_rnd_d
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.10010147
lea ecx, [esp + 0xf4]
add esp, 0x14
push ecx
lea ecx, [esp + 0x11c]
call fcn.10008ea0
add esp, 4
test eax, eax
je 0x100090ec
push ebx
push 0x10026205
push 0x10027dec
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0xf4], 0x10
jmp 0x1000986a
push 1
push 0x10027e00
lea ecx, [esp + 0x94]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.10001d60
mov ecx, dword [esp + 0xe0]
mov esi, 0x10
cmp dword [esp + 0xf4], esi
jae 0x10009184
lea ecx, [esp + 0xe0]
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x30]
call fcn.10001610
add esp, 4
cmp dword [esp + 0xa0], esi
jb 0x100091b1
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.1000fd5b
add esp, 4
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1000957b
mov byte [esp + 0x10], 0x3d
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
push 1
lea edx, [esp + 0x14]
push edx
push esi
xor eax, eax
call fcn.10001b40
mov edi, eax
cmp edi, 0xffffffff
je 0x10009566
mov edx, dword [esp + 0x1c]
push edi
xor ecx, ecx
lea esi, [esp + 0x100]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.100019c0
mov ecx, eax
lea ebx, [esp + 0x8c]
call fcn.10001a10
cmp dword [esp + 0x110], 0x10
jb 0x1000924b
mov eax, dword [esp + 0xfc]
push eax
call fcn.1000fd5b
add esp, 4
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea ecx, [edi + 1]
lea esi, [esp + 0x100]
call fcn.100019c0
mov ecx, eax
lea ebx, [esp + 0x8c]
call fcn.10001a10
cmp dword [esp + 0x110], 0x10
jb 0x10009288
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.1000fd5b
add esp, 4
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x10009558
call fcn.1000f114
mov ebx, eax
mov dword [esp + 0x14], ebx
call fcn.1000eed3
push 0
lea ecx, [esp + 0x54]
mov edi, eax
call fcn.1000f2da
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x100092dd
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x50]
call fcn.1000f302
sub esp, 8
lea ecx, [esp + 0x1c]
mov edi, esp
mov dword [esp + 0x2c], esp
call fcn.10007650
mov ecx, esi
call fcn.1000b1f0
add esp, 8
test ebx, ebx
je 0x10009341
push 0
lea ecx, [esp + 0x50]
call fcn.1000f2da
mov eax, dword [ebx + 4]
test eax, eax
je 0x10009321
cmp eax, 0xffffffff
jae 0x10009321
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x4c]
not esi
call fcn.1000f302
and esi, ebx
je 0x10009341
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call fcn.1000f114
mov ebx, eax
mov dword [esp + 0x24], ebx
call fcn.1000eed3
push 0
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.1000f2da
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x1000936a
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x3c]
call fcn.1000f302
mov esi, dword [esp + 0x8c]
sub esp, 8
add esi, 0x1c
lea ecx, [esp + 0x2c]
mov edi, esp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x50], esp
call fcn.10007650
mov ecx, esi
call fcn.1000b1f0
add esp, 8
test ebx, ebx
je 0x100093dc
push 0
lea ecx, [esp + 0x48]
call fcn.1000f2da
mov eax, dword [ebx + 4]
test eax, eax
je 0x100093bc
cmp eax, 0xffffffff
jae 0x100093bc
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x44]
not esi
call fcn.1000f302
and esi, ebx
je 0x100093dc
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [esp + 0x8c]
mov esi, dword [edx + 0x10]
mov eax, esi
cmp esi, 7
jb 0x100093f2
mov eax, 7
cmp dword [edx + 0x14], 0x10
jb 0x100093fa
mov edx, dword [edx]
mov ecx, str.Version
call fcn.10001050
test eax, eax
jne 0x1000942d
cmp esi, 7
jb 0x1000942d
cmp esi, 7
setne al
test eax, eax
jne 0x1000942d
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.10001c70
jmp 0x10009558
mov edi, dword [esp + 0x8c]
mov ecx, str.GameVersion
call fcn.1000ab30
test al, al
je 0x1000945c
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0xb4]
call fcn.10001c70
jmp 0x10009558
mov ecx, str.DownloadURL
call fcn.1000ab30
test al, al
je 0x10009484
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xd0]
call fcn.10001c70
jmp 0x10009558
mov ecx, str.Message
call fcn.1000ab30
test al, al
je 0x10009558
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esp + 0x60]
call fcn.10001c70
lea edi, [esp + 0x28]
call fcn.10001300
sub esp, 8
mov ecx, eax
mov edi, esp
mov dword [esp + 0x50], esp
call fcn.10007650
lea ecx, [esp + 0x5c]
call fcn.1000b1f0
add esp, 8
lea ecx, [esp + 0x28]
call fcn.10001340
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
mov ecx, esi
cmp eax, 0x10
jae 0x100094e9
lea ecx, [esp + 0x54]
cmp byte [ecx], 0x22
jne 0x10009504
cmp eax, 0x10
mov eax, esi
jae 0x100094f9
lea eax, [esp + 0x54]
mov byte [eax], 0x20
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
mov ecx, esi
cmp eax, 0x10
jae 0x1000950f
lea ecx, [esp + 0x54]
mov edx, dword [esp + 0x64]
cmp byte [ecx + edx - 1], 0x22
jne 0x1000952a
cmp eax, 0x10
mov eax, esi
jae 0x10009525
lea eax, [esp + 0x54]
mov byte [eax + edx - 1], 0x20
lea edx, [esp + 0x54]
push edx
mov esi, 0x10027e2c
mov ecx, 0x10027e30
call fcn.1000ab90
lea eax, [esp + 0x58]
add esp, 4
push eax
mov esi, 0x10027e00
mov ecx, 0x10027e34
call fcn.1000ab90
add esp, 4
lea ebx, [esp + 0x8c]
call fcn.1000a140
xor ebx, ebx
mov esi, dword [esp + 0x1c]
add esi, 0x1c
dec dword [esp + 0x18]
mov dword [esp + 0x1c], esi
jne 0x100091e1
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10009582
mov edi, dword [esp + 0x80]
sub eax, edx
mov esi, eax
mov eax, edi
cmp edi, esi
jb 0x1000959c
mov eax, esi
cmp dword [esp + 0x84], 0x10
mov edx, dword [esp + 0x70]
jae 0x100095ae
lea edx, [esp + 0x70]
mov ecx, dword [esp + 0x20]
call fcn.10001050
cmp eax, ebx
jne 0x100095ce
cmp edi, esi
jb 0x100095ce
xor eax, eax
cmp edi, esi
setne al
cmp eax, ebx
je 0x100097ab
mov edx, dword [0x1002c690]
mov eax, dword [edx + 0xc]
mov ecx, 0x1002c690
call eax
mov edx, dword [esp + 0xa8]
mov ecx, eax
mov eax, 0x10
add ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xbc], eax
jae 0x10009602
lea edx, [esp + 0xa8]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x84], eax
jae 0x10009613
lea ecx, [esp + 0x70]
cmp dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
jae 0x10009621
lea eax, [esp + 0x54]
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
push str._n_s_n_n
lea edi, [esp + 0x2c]
call fcn.1000a960
mov esi, dword [esp + 0x2c]
add esp, 0x14
push 4
push 0x10027e9c
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x1000978f
mov ecx, dword [esp + 0x40]
lea edi, [eax + 0xa]
cmp ecx, ebx
je 0x1000968b
mov eax, dword [esp + 0xc4]
cmp dword [esp + 0xd8], edi
jae 0x10009678
lea eax, [esp + 0xc4]
push eax
mov eax, dword [ebp + 0x14]
push 0x10027ea4
push eax
push ecx
call fcn.10010147
add esp, 0x10
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100096a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x2c]
call fcn.1000a140
cmp dword [esp + 0x68], edi
jb 0x100096c3
mov ecx, dword [esp + 0x54]
push ecx
call fcn.1000fd5b
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0xd8], edi
jb 0x100096ef
mov edx, dword [esp + 0xc4]
push edx
call fcn.1000fd5b
add esp, 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
cmp dword [esp + 0xbc], edi
jb 0x1000971d
mov eax, dword [esp + 0xa8]
push eax
call fcn.1000fd5b
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0x84], edi
jb 0x10009748
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1000fd5b
add esp, 4
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0xf4], edi
jb 0x10009773
mov edx, dword [esp + 0xe0]
push edx
call fcn.1000fd5b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1000f688
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100097ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x2c]
call fcn.1000a140
mov esi, 0x10
cmp dword [esp + 0x68], esi
jb 0x100097cc
mov ecx, dword [esp + 0x54]
push ecx
call fcn.1000fd5b
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0xd8], esi
jb 0x100097f8
mov edx, dword [esp + 0xc4]
push edx
call fcn.1000fd5b
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
cmp dword [esp + 0xbc], esi
jb 0x10009826
mov eax, dword [esp + 0xa8]
push eax
call fcn.1000fd5b
add esp, 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0x84], esi
jb 0x10009851
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1000fd5b
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x1000987c
mov edx, dword [esp + 0xe0]
push edx
call fcn.1000fd5b
add esp, 4
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1000f688
mov esp, ebp
pop ebp
ret 0x10