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

Disassembly:
push 0xffffffffffffffff
push 0x52a880
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp]
test eax, eax
je 0x409c30
mov edx, dword [ebp + 0x14]
cmp eax, edx
je 0x409c30
mov ecx, eax
mov eax, dword [eax + 0x24]
cmp eax, edx
je 0x409c32
mov ecx, eax
mov eax, dword [ecx + 0x24]
cmp eax, edx
jne 0x409c25
jmp 0x409c32
xor ecx, ecx
test ecx, ecx
mov ebx, ecx
jne 0x409c5b
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
mov ebp, dword [esp + 0x8c]
mov ebx, dword [esp + 0x1c]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x409fed
mov esi, dword [ebx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x409c93
cmp eax, dword [esi]
jne 0x409c93
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x409cce
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x409ff7
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ffedf
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x28]
lea edi, [ebx + 4]
push ecx
mov dword [esp + 0x84], 0
call fcn.0040a070
mov dword [esp + 0x80], 1
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
je 0x409d27
test eax, eax
je 0x409d1f
mov edx, eax
mov eax, dword [eax + 0x24]
cmp eax, ecx
je 0x409d21
nop
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x409d10
mov dword [esp + 0x14], edx
jmp 0x409d48
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x409d48
mov eax, dword [ebx + 0x2c]
cmp eax, ecx
mov edx, ebx
je 0x409d42
cmp edx, dword [eax + 0x28]
jne 0x409d3e
mov edx, eax
mov eax, dword [eax + 0x2c]
cmp eax, ecx
jne 0x409d30
cmp eax, ecx
jne 0x409d44
xor eax, eax
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add ebp, 0x60
push eax
mov ebx, ebp
mov dword [esp + 0x20], edx
call fcn.0040e8c0
test eax, eax
je 0x409dd1
cmp dword [eax + 0x1c], 0
jne 0x409f52
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004020b0
lea esi, [eax + 0x10]
push str._all_c_
push esi
call fcn.005006a9
add esp, 8
test eax, eax
je 0x409dab
push str._rand_c_
push esi
call fcn.005006a9
add esp, 8
test eax, eax
je 0x409dab
xor bl, bl
jmp 0x409dad
mov bl, 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x409f52
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004020b0
lea esi, [eax + 0x10]
push str._all_c_
push esi
call fcn.005006a9
add esp, 8
test eax, eax
je 0x409e09
push str._rand_c_
push esi
call fcn.005006a9
add esp, 8
test eax, eax
mov byte [esp + 0x18], 0
jne 0x409e0e
mov byte [esp + 0x18], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x3c], esp
push edx
lea edi, [esp + 0x48]
call fcn.0040a070
lea ebx, [esp + 0x78]
call fcn.0040e490
add esp, 0x1c
mov edi, eax
lea eax, [esp + 0x40]
mov bl, 2
push eax
mov byte [esp + 0x84], bl
call fcn.0040a070
movzx ecx, byte [edi + 0x18]
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x40]
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x28]
push edx
mov ecx, ebp
call fcn.0040e320
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409eaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f7d
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 0x409f9d
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 0x409fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
jne 0x409c50
jmp 0x409c38
push 0x80004005
call fcn.004026a0
call fcn.004020a0
int3