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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x538658
push eax
mov eax, dword [ebp + 8]
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
xor esi, esi
sub eax, esi
push edi
mov ebx, ecx
mov edi, edx
je 0x408279
dec eax
jne 0x408260
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], 0x56733c
mov dword [esp + 0x54], 6
mov eax, dword [edi + 0x88]
dec eax
mov dword [esp + 0x40], eax
cmp ebx, esi
jne 0x408044
xor ecx, ecx
jmp 0x408047
mov ecx, dword [ebx + 4]
push 1
push esi
push esi
push ecx
push eax
mov eax, dword [0x29bd2d8]
push eax
call fcn.0040956e
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00401130
cmp dword [edi + 0x90], 1
jne 0x4080c2
cmp dword [edi + 0x88], 3
je 0x4080c2
mov dword [esp + 0x28], 0x567364
mov dword [esp + 0x2c], 0xc8
mov dword [esp + 0x30], 0x1e
mov byte [esp + 0x54], 7
cmp ebx, esi
jne 0x408099
xor eax, eax
jmp 0x40809c
mov eax, dword [ebx + 4]
mov edx, dword [0x29bd2e0]
push 1
push 0x1e
push 0xc8
push eax
push esi
push edx
call fcn.0040956e
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00401130
mov byte [esp + 0x54], 6
cmp dword [edi + 0x7c], esi
je 0x4080d3
mov ecx, dword [edi + 0x7c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
push ebx
call eax
call fcn.0040a679
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4080ed
push 0x80004005
call fcn.00401bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x54], 8
mov ecx, dword [edi + 0x84]
push ecx
lea edx, [esp + 0x18]
push 0x29911c4
push edx
call fcn.00401ba0
add esp, 0xc
push 1
mov ecx, ebx
call fcn.0040b44c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x5c]
push ecx
push 0x28
push 0xa
mov ecx, ebx
call eax
call fcn.0040a679
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x408154
push 0x80004005
call fcn.00401bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x54], 9
mov ecx, dword [edi + 0x88]
push ecx
lea edx, [esp + 0x14]
push 0x29911dc
push edx
call fcn.00401ba0
add esp, 0xc
push 1
mov ecx, ebx
call fcn.0040b44c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0x5c]
push 0xa
push 0x12c
mov ecx, ebx
call eax
add edi, 0xa4
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], edi
mov esi, dword [edi + 4]
mov dword [esp + 0x18], esi
test esi, esi
je 0x4081fd
mov eax, esi
test esi, esi
je 0x408274
mov edi, dword [eax + 8]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov esi, dword [esi]
push 0
push ebx
mov ecx, edi
call eax
test eax, eax
jne 0x4081f5
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00427824
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4081bd
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
inc eax
add edi, 0x1c
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edi
cmp eax, 6
jl 0x4081b2
mov byte [esp + 0x54], 8
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 0x40823b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 6
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 0x408260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004096f9
mov ecx, dword [edi + 0x154]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
push ebx
call eax
push esi
cmp eax, 1
jne 0x408304
mov ecx, dword [edi + 0x20]
mov ebx, dword [0x53b7dc]
push 0x2d
push eax
push ecx
call ebx
mov edx, dword [edi + 0x20]
push esi
push 0x2710
push 2
push edx
call ebx
mov eax, dword [edi + 0x20]
push esi
push 0x1388
push 3
push eax
call ebx
call fcn.0040956e
mov eax, dword [eax + 8]
push 0x4000d
push eax
push 0x15a
call dword [0x53b8fc]
mov ecx, dword [edi + 0x154]
cmp ecx, esi
je 0x4082e5
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [edi + 0x20]
push esi
push ecx
call dword [0x53b748]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x154]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push ebx
call eax
cmp eax, 2
jne 0x4084ad
push 0x29910d0
lea ecx, [esp + 0x24]
call fcn.004047c0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x5c], esi
call fcn.00403630
mov byte [esp + 0x54], 2
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 0x408361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x2991140
lea ecx, [esp + 0x20]
call fcn.004047c0
mov byte [esp + 0x54], 3
call fcn.0040a679
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40838e
push 0x80004005
call fcn.00401bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov bl, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], bl
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00403830
lea esi, [esp + 0xc]
call fcn.004087d0
mov ecx, esi
test al, al
je 0x4083d3
push 0x2991184
call fcn.004048c0
jmp 0x408402
push ecx
lea edx, [esp + 0x28]
push 0x2991194
push edx
call fcn.004089b0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 5
call fcn.00403050
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], bl
call fcn.00403e90
mov eax, dword [edi + 0x20]
push 0
push eax
call dword [0x53b748]
mov esi, dword [esp + 0xc]
push 0
push 0x29911b8
push esi
mov ecx, edi
call fcn.00410559
test eax, eax
je 0x408442
mov eax, dword [edi + 0x154]
push 0
push 0x64
mov dword [eax + 0x10], 0
mov ecx, dword [edi + 0x20]
push 0
push ecx
call dword [0x53b7dc]
lea eax, [esi - 0x10]
mov byte [esp + 0x54], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 2
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 0x408488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 0xffffffff
call fcn.00403710
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [edi + 0x154]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push esi
push ebx
mov ecx, edi
call eax
cmp eax, 3
jne 0x408260
push esi
call fcn.005144e0
int3