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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4030ad
cmp dword [ebx + 0x2c], 0
je 0x4030ad
mov dword [ebx + 0x34], 0
cmp dword [ebx + 0x80], 8
jne 0x402edb
cmp dword [ebx + 0x84], 0
jne 0x402edb
lea eax, [ebx + 0x30]
lea esi, [ebx + 0x88]
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x40], 0
jne 0x402eaa
mov eax, ebx
call fcn.00402cce
mov dword [ebx + 0x40], 0x4000
mov dword [ebx + 0x3c], esi
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.0055f3c0
mov ecx, dword [ebx + 0x44]
mov edx, eax
sub ecx, dword [ebp - 0x1c]
add dword [ebx + 0x6c], ecx
test eax, eax
je 0x402e93
cmp eax, 1
jne 0x402edf
xor dl, dl
jmp 0x402ee3
xor edx, edx
jmp 0x402ee3
test eax, eax
jne 0x402efc
cmp dword [ebx + 0x6c], 0
je 0x402efc
mov eax, ebx
mov dword [ebp - 0x24], edx
call fcn.00402cce
mov edx, dword [ebp - 0x24]
inc eax
jne 0x402efc
or edx, 0xffffffff
cmp dword [ebx + 0x80], 8
jne 0x402f22
cmp dword [ebx + 0x84], 0
jne 0x402f22
lea eax, [ebx + 0x30]
mov dword [esp], eax
call fcn.0055f070
mov dword [ebx + 0x68], 0
mov edx, eax
cmp dword [ebx + 0x84], 0
jne 0x402f37
mov ecx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x408c]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebx + 0x74]
mov esi, dword [ebx + 0x44]
mov ecx, edi
add esi, dword [ebx + 0x40a4]
mov byte [eax + 0x10], cl
mov ecx, edi
shr ecx, 8
mov byte [eax + 0x11], cl
mov ecx, edi
shr ecx, 0x10
mov byte [eax + 0x12], cl
mov ecx, edi
shr ecx, 0x18
mov byte [eax + 0x13], cl
mov ecx, esi
mov eax, dword [ebx + 0x74]
add eax, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x74]
mov byte [eax + 0x14], cl
mov ecx, esi
shr ecx, 8
mov eax, dword [ebp - 0x1c]
mov byte [eax + 1], cl
mov ecx, esi
shr ecx, 0x10
mov byte [eax + 2], cl
mov ecx, esi
shr ecx, 0x18
mov byte [eax + 3], cl
cmp dword [ebx + 0x5c], 1
jne 0x402f9d
mov eax, dword [ebx + 0x74]
mov byte [eax + 0x24], 1
mov byte [eax + 0x25], 0
mov eax, dword [ebx + 0x74]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0x18], cl
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov byte [eax + 0x19], cl
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
mov byte [eax + 0x1a], cl
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
test edx, edx
mov byte [eax + 0x1b], cl
jne 0x402fd5
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x78]
lea eax, [ebx + 0x24]
call fcn.00402d69
mov edx, eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call fcn.005770f0
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x40309e
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [ebx + 0xc]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x70]
add eax, 0xe
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [ebx + 0x10]
or edx, 0xffffffff
test eax, eax
jne 0x403072
mov edx, dword [ebx + 0x20]
mov ecx, edi
mov eax, ebx
mov dword [esp], 4
call fcn.00402b4b
mov edx, eax
test eax, eax
jne 0x403072
mov edx, dword [ebx + 0x20]
mov ecx, esi
mov eax, ebx
mov dword [esp], 4
call fcn.00402b4b
mov edx, eax
test eax, eax
jne 0x403072
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
mov dword [esp], 4
call fcn.00402b4b
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
test eax, eax
je 0x40309e
or edx, 0xffffffff
inc dword [ebx + 0x40b0]
mov dword [ebx + 0x2c], 0
jmp 0x4030b2
mov edx, 0xffffff9a
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret