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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
push esi
movsx esi, word [edx + 0x14]
mov eax, dword [edx + 0x144]
or dword [edx + 0x150], 0xffffffff
or dword [edx + 0x14c], 0xffffffff
movzx ecx, byte [eax + edx + 0x28]
mov eax, dword [edx]
push edi
mov edi, dword [edx + 0x140]
imul edi, esi
imul edi, edi, 5
mov byte [ebp - 2], 0
add edi, dword [eax + ecx*8 + 4]
je 0x402f5f
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
jle 0x402f5f
push ebx
mov bl, byte [edi + 4]
mov al, byte [edi + 3]
mov esi, ecx
imul esi, esi, 0xac
mov bh, bl
add esi, 0x430640
shr bh, 4
and bl, 0xf
mov dword [ebp - 0x10], esi
cmp al, 3
je 0x402836
cmp al, 5
je 0x402836
xor cl, cl
jmp 0x402838
mov cl, 1
mov al, byte [edi + 1]
mov byte [ebp - 1], cl
test al, al
je 0x40284b
test cl, cl
jne 0x40284b
dec al
mov byte [esi + 0x66], al
mov al, byte [edi]
test al, al
je 0x40285d
cmp al, 0xff
je 0x40285d
test cl, cl
jne 0x40285d
dec al
mov byte [esi], al
movzx eax, byte [esi + 0x66]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
movsx eax, word [edx + 0x20]
cmp dword [ebp - 8], eax
jl 0x402887
and dword [0x431d20], 0
mov dword [ebp - 8], 0x431bc0
mov dword [ebp - 0xc], 0x431d20
jmp 0x4028bf
mov eax, dword [ebp - 8]
imul eax, eax, 0x154
add eax, dword [edx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [esi]
mov edx, dword [ebp - 8]
mov al, byte [eax + edx + 0x44]
cmp al, 0x10
jb 0x4028ab
mov eax, 0x431d20
jmp 0x4028b2
movzx eax, al
mov eax, dword [edx + eax*4 + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
test cl, cl
jne 0x4028bf
mov dword [esi + 8], eax
cmp byte [esi + 0x6c], 7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
jne 0x4028e5
cmp byte [edi + 3], 7
je 0x4028e5
mov eax, dword [esi + 0x18]
add eax, ecx
mov dword [esi + 0x10], eax
mov al, byte [edi + 3]
and dword [esi + 0x18], 0
mov byte [esi + 0x6c], al
mov byte [esi + 2], 0
mov al, byte [edi]
test al, al
je 0x40294e
cmp al, 0xff
je 0x40294e
mov ecx, dword [ebp - 0xc]
mov cl, byte [ecx + 0x1f]
dec cl
add cl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + 0x67], cl
test byte [edx + 0x22], 1
movsx eax, byte [eax + 0x11]
je 0x40292f
movzx ecx, cl
imul ecx, ecx, 0xffffffc0
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add ecx, 0x1e00
mov dword [esi + 0x68], ecx
jmp 0x40293e
push eax
movzx eax, cl
push eax
call fcn.00402fe4
pop ecx
pop ecx
mov dword [esi + 0x68], eax
cmp byte [ebp - 1], 0
jne 0x40294a
mov eax, dword [esi + 0x68]
mov dword [esi + 0xc], eax
mov byte [esi + 2], 8
and dword [esi + 0x1c], 0
or byte [esi + 2], 3
cmp byte [edi + 1], 0
je 0x402967
push dword [ebp - 0xc]
push esi
call fcn.0040344b
pop ecx
pop ecx
mov al, byte [edi + 2]
test al, al
je 0x402977
push eax
push esi
call fcn.0040335b
pop ecx
pop ecx
cmp byte [edi], 0xff
je 0x402982
cmp byte [edi + 3], 0x14
jne 0x402986
mov byte [esi + 0x65], 1
mov eax, dword [ebp - 8]
mov dl, byte [eax + 0x14c]
test dl, 1
je 0x4029ec
lea ecx, [esi + 0x3c]
cmp byte [ecx], 0
jne 0x4029f6
push 2
lea eax, [esi + 0x38]
push eax
push ecx
mov ecx, dword [ebp - 8]
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x34]
push eax
movzx eax, byte [ecx + 0x146]
push eax
movzx eax, byte [ecx + 0x147]
push eax
movzx eax, byte [ecx + 0x148]
push eax
lea eax, [ecx + 0xa4]
push eax
movzx eax, byte [ecx + 0x144]
push eax
push edx
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x2c]
push eax
push esi
call fcn.00403262
mov eax, dword [ebp - 8]
add esp, 0x38
jmp 0x4029f6
cmp byte [esi + 0x65], 0
je 0x4029f6
and dword [esi + 0x34], 0
mov dl, byte [eax + 0x14d]
test dl, 1
je 0x402a54
lea ecx, [esi + 0x54]
cmp byte [ecx], 0
jne 0x402a54
push 4
lea eax, [esi + 0x50]
push eax
push ecx
mov ecx, dword [ebp - 8]
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0x4c]
push eax
movzx eax, byte [ecx + 0x149]
push eax
movzx eax, byte [ecx + 0x14a]
push eax
movzx eax, byte [ecx + 0x14b]
push eax
lea eax, [ecx + 0xf4]
push eax
movzx eax, byte [ecx + 0x145]
push eax
push edx
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x44]
push eax
push esi
call fcn.00403262
add esp, 0x38
cmp byte [esi + 0x65], 0
mov edx, dword [ebp - 8]
je 0x402a77
movzx eax, word [edx + 0x152]
sub dword [esi + 0x58], eax
mov eax, dword [esi + 0x58]
push 0
pop ecx
cmovs eax, ecx
or byte [esi + 2], 2
mov dword [esi + 0x58], eax
movzx eax, byte [edi + 3]
cmp eax, 0x15
jg 0x402eb3
je 0x402de0
dec eax
cmp eax, 0x10
ja case.0x402c47.3
jmp dword [eax*4 + 0x402f65]
mov al, byte [edi + 4]
mov ebx, dword [ebp + 8]
test al, al
je 0x402f2f
mov byte [esi + 0x79], al
jmp 0x402f2f
mov al, byte [edi + 4]
mov ebx, dword [ebp + 8]
test al, al
je 0x402f2f
mov byte [esi + 0x78], al
jmp 0x402f2f
mov al, byte [edi + 4]
test al, al
je 0x402ad4
mov byte [esi + 0x84], al
mov eax, dword [esi + 0x68]
mov dword [esi + 0x80], eax
and byte [esi + 2], 0xf6
jmp case.0x402c47.3
mov eax, dword [esi + 0x68]
mov dword [esi + 0x80], eax
mov al, byte [edi + 4]
test al, al
je 0x402add
mov byte [esi + 0x7c], al
jmp 0x402add
test bh, bh
je 0x402b05
mov byte [esi + 0x86], bh
test bl, bl
je 0x402b0f
mov byte [esi + 0x87], bl
push esi
call fcn.004038b4
pop ecx
jmp case.0x402c47.3
mov al, byte [edi + 4]
test al, al
je 0x402b0f
mov byte [esi + 0x7c], al
jmp 0x402b0f
test bh, bh
je 0x402b31
mov byte [esi + 0x8a], bh
test bl, bl
je case.0x402c47.3
mov byte [esi + 0x8b], bl
jmp case.0x402c47.3
movzx eax, byte [edi + 4]
mov dword [esi + 0x14], eax
jmp 0x402f28
mov al, byte [edi + 4]
test al, al
je 0x402b5d
movzx eax, al
mov dword [esi + 0x70], eax
mov edx, dword [esi + 4]
test edx, edx
je case.0x402c47.3
mov ebx, dword [ebp - 0xc]
mov ecx, dword [esi + 0x70]
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 8]
mov ebx, dword [ebp + 8]
shl ecx, 8
cmp ecx, eax
jb 0x402b8d
mov al, byte [esi + 2]
and al, 0xf7
or al, 0x20
mov byte [esi + 2], al
jmp 0x402f2f
mov dword [edx + 0x18], ecx
jmp 0x402f2f
mov al, byte [edi + 4]
mov ebx, dword [ebp + 8]
test al, al
je 0x402f2f
mov byte [esi + 0x7c], al
jmp 0x402f2f
movzx eax, byte [edi + 4]
mov ebx, dword [ebp + 8]
xor edx, edx
and dword [ebx + 0x14c], 0
mov dword [ebx + 0x150], eax
movsx eax, word [ebx + 0x10]
mov ecx, dword [ebx + 0x150]
cmp ecx, eax
cmovge ecx, edx
mov dword [ebx + 0x150], ecx
mov byte [ebp - 2], 1
jmp 0x402f2f
movzx eax, byte [edi + 4]
or byte [esi + 2], 2
mov dword [esi + 0x10], eax
jmp case.0x402c47.3
movzx ecx, bh
imul ecx, ecx, 0xa
movzx eax, bl
mov ebx, dword [ebp + 8]
add eax, ecx
xor edx, edx
cmp eax, 0x3f
mov ecx, eax
cmovg ecx, edx
mov dword [ebx + 0x14c], ecx
cmp byte [ebp - 2], dl
jne 0x402c1f
mov eax, dword [ebx + 0x144]
inc eax
mov dword [ebx + 0x150], eax
movsx eax, word [ebx + 0x10]
cmp dword [ebx + 0x150], eax
jl 0x402f2f
and dword [ebx + 0x150], edx
jmp 0x402f2f
movzx eax, bh
dec eax
cmp eax, 0xd
ja case.0x402c47.3
jmp dword [eax*4 + 0x402fa9]
test bl, bl
je 0x402c58
mov byte [esi + 0xa8], bl
movzx eax, byte [esi + 0xa8]
shl eax, 2
sub dword [esi + 0xc], eax
jmp case.0x402c47.3
test bl, bl
je 0x402c74
mov byte [esi + 0xa9], bl
movzx eax, byte [esi + 0xa9]
shl eax, 2
add dword [esi + 0xc], eax
jmp case.0x402c47.3
mov al, byte [esi + 0xa2]
and al, 0xf0
or al, bl
mov byte [esi + 0xa2], al
jmp case.0x402c47.3
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x11], bl
jmp case.0x402c47.3
test bl, bl
jne 0x402cbe
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x140]
mov dword [esi + 0x98], eax
jmp 0x402f2f
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x402ccd
movzx eax, bl
jmp 0x402cce
dec eax
mov ebx, dword [ebp + 8]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x402f2f
mov eax, dword [esi + 0x98]
mov dword [ebx + 0x14c], eax
jmp 0x402f2f
mov al, byte [esi + 0xa2]
and al, 0xf
shl bl, 4
jmp 0x402c8e
movzx eax, bl
shl eax, 4
jmp 0x402b48
test bl, bl
je 0x402d12
mov byte [esi + 0xa7], bl
movzx eax, byte [esi + 0xa7]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
push 0x40
pop ecx
cmp eax, ecx
cmovg eax, ecx
jmp 0x402be3
test bl, bl
je 0x402d36
mov byte [esi + 0xa7], bl
movzx eax, byte [esi + 0xa7]
sub dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
push 0
pop ecx
cmovs eax, ecx
jmp 0x402be3
mov eax, dword [ebp - 0x18]
and byte [esi + 2], 0xf0
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
jmp case.0x402c47.3
movzx eax, bl
mov ebx, dword [ebp + 8]
imul eax, dword [ebx + 0x138]
mov dword [ebx + 0x148], eax
jmp 0x402f2f
mov al, byte [edi + 4]
mov ebx, dword [ebp + 8]
cmp al, 0x20
movzx eax, al
jae 0x402d99
mov dword [ebx + 0x138], eax
jmp 0x402f2f
push eax
push ebx
call fcn.00401436
pop ecx
pop ecx
jmp 0x402f2f
movzx ecx, byte [edi + 4]
mov ebx, dword [ebp + 8]
push 0x40
pop edx
cmp ecx, edx
mov eax, ecx
cmovg eax, edx
mov dword [ebx + 0x12c], eax
or byte [esi + 2], 2
jmp 0x402f2f
mov al, byte [edi + 4]
mov ebx, dword [ebp + 8]
test al, al
je 0x402f2f
mov byte [ebx + 0x130], al
jmp 0x402f2f
test byte [edx + 0x14c], 1
je case.0x402c47.3
movzx ebx, byte [edi + 4]
add edx, 0xa8
xor ecx, ecx
movzx eax, word [edx]
cmp ebx, eax
jle 0x402e1c
mov eax, dword [ebp - 8]
movzx esi, byte [eax + 0x144]
cmp ecx, esi
jge 0x402e19
add edx, 4
inc ecx
movzx eax, word [edx]
cmp ebx, eax
jg 0x402e0a
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov dword [esi + 0x2c], ecx
movzx edx, byte [ebx + 0x144]
lea eax, [edx - 1]
cmp ecx, eax
jl 0x402e44
movzx eax, word [ebx + edx*4 + 0xa2]
mov dword [esi + 0x34], eax
mov byte [esi + 0x3c], 1
jmp case.0x402c47.3
mov byte [esi + 0x3c], 0
movzx eax, byte [edi + 4]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
lea ebx, [ecx + 1]
movzx edx, word [eax + ecx*4 + 0xa4]
movzx ecx, word [eax + ecx*4 + 0xa6]
movzx eax, word [eax + ebx*4 + 0xa4]
shl ecx, 0x10
sub eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
je 0x402e96
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*4 + 0xa6]
shl eax, 0x10
sub eax, ecx
cdq
idiv dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x38], eax
jmp 0x402e9a
and dword [esi + 0x38], 0
mov eax, dword [esi + 0x28]
sub eax, edx
imul eax, dword [esi + 0x38]
add eax, ecx
mov dword [esi + 0x30], eax
sar eax, 0x10
mov dword [esi + 0x34], eax
mov dword [esi + 0x2c], ebx
jmp case.0x402c47.3
sub eax, 0x19
je 0x402f1e
dec eax
dec eax
je 0x402f10
dec eax
dec eax
je 0x402eef
sub eax, 4
jne case.0x402c47.3
cmp bh, 1
jne 0x402eda
test bl, bl
je 0x402ed1
mov byte [esi + 0x7b], bl
movzx eax, byte [esi + 0x7b]
jmp 0x402c62
cmp bh, 2
jne case.0x402c47.3
test bl, bl
je 0x402ee6
mov byte [esi + 0x7a], bl
movzx eax, byte [esi + 0x7a]
jmp 0x402c7e
cmp byte [edi + 4], 0
je 0x402f05
inc bh
inc bl
mov byte [esi + 0x93], bh
mov byte [esi + 0x94], bl
push esi
call fcn.0040360b
jmp 0x402b15
cmp byte [edi + 4], 0
je case.0x402c47.3
mov byte [esi + 0x7e], bh
mov byte [esi + 0x7f], bl
jmp case.0x402c47.3
mov al, byte [edi + 4]
test al, al
je case.0x402c47.3
mov byte [esi + 0x7d], al
or byte [esi + 2], 4
mov ebx, dword [ebp + 8]
push dword [ebp - 8]
push esi
call fcn.00403105
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040365c
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
movsx eax, word [edx + 0x14]
add esp, 0x14
inc ecx
add edi, 5
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x40280b
pop ebx
pop edi
pop esi
leave
ret