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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x14], 0
test dword [esi + 8], 0x80000
je 0x4027e0
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
mov dword [ebp - 0x10], 1
cmp eax, dword [esi + 0x24]
jbe 0x4027e7
mov dword [ebp - 0x10], 0
cmp dword [esi], 0
jne 0x402807
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x402807
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0x40280d
lea eax, [esi + 0x39272]
mov cl, byte [esi + 0x38]
lea edx, [esi + 0x34]
mov dword [esi + 0x30], eax
lea edi, [esi + 0x30]
mov dword [ebp - 0x1c], eax
add eax, 0x14cbc
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [ebp - 4], edx
shr byte [eax], cl
xor eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test dword [esi + 8], 0x1000
je 0x4028da
cmp dword [esi + 0x64], 0
lea edx, [esi + 0x34]
mov dword [ebp - 4], edx
lea edi, [esi + 0x30]
jne 0x4028da
mov ecx, dword [esi + 0x44]
mov edx, 0x78
shl edx, cl
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
lea ecx, [esi + 0x34]
cmp eax, 8
jb 0x4028a3
nop
mov eax, dword [esi + 0x30]
cmp eax, dword [ecx]
jae 0x40288c
mov byte [eax], dl
inc dword [esi + 0x30]
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add eax, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x402880
bts edx, eax
add eax, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4028d1
mov eax, dword [esi + 0x30]
cmp eax, dword [ecx]
jae 0x4028c0
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x4028b4
lea edx, [esi + 0x34]
mov dword [ebp - 4], edx
lea edi, [esi + 0x30]
mov ecx, dword [esi + 0x44]
xor ebx, ebx
cmp dword [ebp - 0x18], 4
sete bl
shl ebx, cl
lea eax, [ecx + 1]
or ebx, dword [esi + 0x48]
mov dword [esi + 0x48], ebx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x402929
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x10], 0
mov eax, dword [edi]
mov dword [ebp - 8], eax
jne 0x402993
test dword [esi + 8], 0x40000
lea eax, [esi + 0x3c]
jne 0x40295b
cmp dword [eax], 0x30
mov dword [ebp - 0x10], eax
jb 0x40295b
xor edx, edx
jmp 0x402963
mov ebx, dword [ebp - 8]
mov eax, dword [edi]
cmp eax, dword [edx]
jae 0x402933
mov byte [eax], bl
inc dword [edi]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add eax, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x44], eax
mov byte [ebp - 8], bl
cmp eax, 8
jae 0x402926
lea ecx, [esi + 0x34]
lea edi, [esi + 0x30]
mov dword [ebp - 4], ecx
jmp 0x4028ff
mov edx, 1
mov dword [ebp - 0x10], eax
mov ecx, esi
call fcn.004026c0
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [edx]
test edx, edx
je 0x402af4
sub ecx, eax
inc ecx
cmp ecx, edx
jb 0x402af4
lea ecx, [esi + 0x34]
lea edi, [esi + 0x30]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
mov eax, dword [ebp - 8]
ja 0x402af4
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [edi], eax
mov dword [esi + 0x48], ebx
mov dword [ebp - 8], edx
mov dword [esi + 0x44], edx
cmp edx, 8
jb 0x4029f4
nop dword [eax + eax]
mov edx, eax
cmp eax, dword [ecx]
jae 0x4029cc
mov byte [eax], bl
inc dword [edi]
mov edx, dword [edi]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add eax, 0xfffffff8
mov dword [ebp - 8], eax
shr ebx, 8
cmp dword [ebp - 8], 8
mov dword [esi + 0x44], eax
mov eax, edx
mov dword [esi + 0x48], ebx
jae 0x4029c0
lea eax, [esi + 0x34]
mov dword [ebp - 4], eax
lea edi, [esi + 0x30]
jmp 0x4029f9
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x402a3d
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], 8
nop word [eax + eax]
cmp edx, dword [eax]
jae 0x402a1a
mov byte [edx], bl
inc dword [edi]
mov edx, dword [edi]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
mov eax, dword [ebp - 4]
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402a10
lea eax, [esi + 0x34]
mov dword [ebp - 4], eax
lea edi, [esi + 0x30]
mov dword [ebp - 0x10], 2
movzx eax, word [esi + 0x3c]
shl eax, cl
add ecx, 0x10
or eax, ebx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov ebx, eax
mov edx, ecx
cmp ecx, 8
jb 0x402a86
nop
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
cmp eax, dword [ecx]
jae 0x402a6d
mov byte [eax], bl
inc dword [edi]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov edx, ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402a60
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x3c], 0xffff
dec eax
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x402a44
xor edi, edi
cmp dword [esi + 0x3c], edi
jbe 0x402b12
nop
mov eax, dword [esi + 0x40]
mov ecx, edx
add eax, edi
add edx, 8
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or eax, ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov ebx, eax
cmp edx, 8
jb 0x402aec
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x402ad5
mov byte [eax], bl
inc dword [esi + 0x30]
mov edx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add edx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], edx
cmp edx, 8
jae 0x402ac8
inc edi
cmp edi, dword [esi + 0x3c]
jb 0x402aa0
jmp 0x402b12
cmp dword [ebp - 0x14], 0
jne 0x402b12
mov edx, dword [ebp - 0xc]
mov ecx, esi
mov dword [esi + 0x44], edx
mov edx, 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x48], ebx
call fcn.004026c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402c7e
mov ecx, dword [esi + 0x44]
cmp eax, 4
jne 0x402bbf
test ecx, ecx
je 0x402b62
mov edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], 8
nop word [eax + eax]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x402b4d
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
shr dword [esi + 0x48], 8
add ecx, 0xfffffff8
mov dl, byte [esi + 0x48]
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402b40
test dword [esi + 8], 0x1000
je 0x402c7e
mov edx, dword [esi + 0x18]
mov edi, 4
mov eax, edx
shr eax, 0x18
shl eax, cl
add ecx, 8
or eax, dword [esi + 0x48]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x402bb2
nop
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x402b9d
mov byte [ecx], al
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
shr dword [esi + 0x48], 8
add ecx, 0xfffffff8
mov al, byte [esi + 0x48]
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402b90
shl edx, 8
sub edi, 1
jne 0x402b77
jmp 0x402c7e
mov edx, dword [esi + 0x48]
add ecx, 3
xor ebx, ebx
mov dword [esi + 0x48], edx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x402bf9
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x402be2
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402bd5
test ecx, ecx
je 0x402c2b
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], 8
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x402c14
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402c07
mov edi, 2
movzx ebx, bx
shl ebx, cl
add ecx, 0x10
or ebx, edx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ebx
mov edx, ebx
cmp ecx, 8
jb 0x402c6d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x402c54
mov byte [eax], bl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov bl, dl
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x402c47
mov ebx, dword [ebp - 0x18]
xor ebx, 0xffff
mov dword [ebp - 0x18], ebx
sub edi, 1
jne 0x402c30
push 0x240
lea eax, [esi + 0x8192]
push 0
push eax
call fcn.0044d070
push 0x40
lea eax, [esi + 0x83d2]
push 0
push eax
call fcn.0044d070
mov edi, dword [esi + 0x30]
lea eax, [esi + 0x9273]
inc dword [esi + 0x64]
add esp, 0x18
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], 0
sub edi, eax
je 0x402d68
cmp dword [esi], 0
je 0x402d1d
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push edi
mov edi, dword [esi]
mov ecx, edi
push eax
call dword [0x4791e8]
call edi
add esp, 0xc
test eax, eax
jne 0x402d68
pop edi
mov dword [esi + 0x6c], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esi + 0x39272]
cmp eax, edx
jne 0x402d62
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov ebx, dword [eax]
mov eax, dword [esi + 0x74]
sub ebx, ecx
cmp edi, ebx
cmovb ebx, edi
add eax, ecx
push ebx
push edx
push eax
call fcn.0044d210
add dword [esi + 0x8c], ebx
add esp, 0xc
sub edi, ebx
je 0x402d68
mov dword [esi + 0x5c], edi
mov eax, edi
pop edi
mov dword [esi + 0x58], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret