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

Disassembly:
push 0xffffffffffffffff
push 0x542a1a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58ede4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x60], 1
mov ecx, dword [esp + 0x6c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40a652
push 0x80004005
call fcn.0040efe0
mov eax, dword [esp + 0x68]
push ecx
push eax
call fcn.00504458
add esp, 8
test eax, eax
sete al
test al, al
je 0x40a6ce
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a68e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
call fcn.00411176
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a6e8
push 0x80004005
call fcn.0040efe0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x60], 2
call fcn.00411176
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a717
push 0x80004005
call fcn.0040efe0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x60], 3
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x20]
push str.english_belize
push edx
call fcn.0040efa0
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
add esp, 0xc
or eax, edx
jge 0x40a76d
push 0x104
lea ecx, [esp + 0x70]
call fcn.0040ee70
mov ecx, dword [esp + 0x6c]
call fcn.0040ad60
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0050363b
add esp, 8
test eax, eax
jl 0x40aa55
mov ecx, dword [esp + 0x6c]
cmp eax, dword [ecx - 8]
jg 0x40aa55
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x6c]
mov byte [eax + ecx], 0
lea ecx, [esp + 0x40]
call fcn.00416156
mov byte [esp + 0x60], 4
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.004161eb
test eax, eax
je 0x40a9a1
mov ebp, dword [0x5463ec]
lea ecx, [esp + 0x40]
call fcn.00415e5a
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], eax
call fcn.0041611b
test eax, eax
jne 0x40a996
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
call fcn.0041646a
mov byte [esp + 0x60], 5
mov eax, dword [eax]
push 0x56d684
or ebx, 1
push eax
mov dword [esp + 0x28], ebx
call fcn.00504d51
add esp, 8
test eax, eax
je 0x40a845
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
call fcn.0041646a
mov eax, dword [eax]
push 0x56d690
push eax
or ebx, 2
call fcn.00504d51
add esp, 8
mov byte [esp + 0x17], 0
test eax, eax
jne 0x40a84a
mov byte [esp + 0x17], 1
mov dword [esp + 0x60], 5
test bl, 2
je 0x40a87e
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a87e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 4
test bl, 1
je 0x40a8ae
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x40a996
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0041646a
mov byte [esp + 0x60], 7
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0x20]
push 0x56cf3c
push ecx
call fcn.0040efa0
mov byte [esp + 0x70], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a90b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x44]
call eax
test eax, eax
je 0x40a95c
mov edi, dword [esp + 0x18]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.0040ec90
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 8
call fcn.004163de
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.0040a600
jmp 0x40a996
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x44]
call fcn.004163de
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
push 0
push edi
push eax
call ebp
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 0x40a996
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0
jne 0x40a7cf
lea ecx, [esp + 0x40]
call fcn.00415d74
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 3
call fcn.0041617c
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
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 0x40a9fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40a6b8
push 0x80070057
call fcn.0040efe0
int3