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

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push edi
mov ebp, dword [esp + 0xe0]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi]
mov dword [esp + 0x98], edx
movzx edx, byte [esi + 3]
mov dword [esp + 0x94], ecx
movzx ecx, byte [esi + 2]
and edx, 0xf
mov dword [esp + 0x9c], ecx
movzx ecx, byte [esi + 4]
mov dword [esp + 0xa0], edx
movzx edx, byte [esi + 5]
and ecx, 0xfc
mov dword [esp + 0xa8], edx
movzx edx, byte [esi + 7]
mov dword [esp + 0xa4], ecx
movzx ecx, byte [esi + 6]
and edx, 0xf
mov dword [esp + 0xac], ecx
movzx ecx, byte [esi + 8]
mov dword [esp + 0xb0], edx
movzx edx, byte [esi + 9]
and ecx, 0xfc
mov dword [esp + 0xb8], edx
movzx edx, byte [esi + 0xb]
xor eax, eax
mov dword [esp + 0xb4], ecx
movzx ecx, byte [esi + 0xa]
and edx, 0xf
mov dword [esp + 0xbc], ecx
movzx ecx, byte [esi + 0xc]
mov dword [esp + 0xc0], edx
movzx edx, byte [esi + 0xd]
and ecx, 0xfc
mov dword [esp + 0xc8], edx
movzx edx, byte [esi + 0xf]
mov dword [esp + 0xc4], ecx
movzx ecx, byte [esi + 0xe]
xor edi, edi
and edx, 0xf
mov ebx, 0x10
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
xor ecx, ecx
cmp ecx, edi
ja 0x4029b0
jb 0x4029a2
cmp eax, ebx
jae 0x4029b0
movzx ecx, byte [eax + ebp]
mov dword [esp + eax*4 + 0x50], ecx
inc eax
cmp eax, 0x10
jb 0x402996
add ebp, eax
sub ebx, eax
sbb edi, 0
mov dword [esp + eax*4 + 0x50], 1
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + eax + 0x50]
add edx, dword [esp + eax + 0xc]
add eax, 4
add ecx, edx
movzx edx, cl
mov dword [esp + eax + 8], edx
shr ecx, 8
cmp eax, 0x44
jb 0x4029c3
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x10]
call fcn.00402630
add esp, 4
test edi, edi
ja 0x402941
jb 0x402a05
test ebx, ebx
ja 0x402941
lea eax, [esp + 0xc]
call fcn.00402550
pop edi
pop ebp
xor eax, eax
pop ebx
movzx ecx, byte [esi + eax + 0x10]
mov dword [esp + eax*4 + 0x44], ecx
inc eax
cmp eax, 0x10
jb 0x402a13
xor ecx, ecx
mov dword [esp + 0x84], 0
xor eax, eax
mov edx, dword [esp + eax + 0x44]
add edx, dword [esp + eax]
add eax, 4
add ecx, edx
movzx edx, cl
mov dword [esp + eax - 4], edx
shr ecx, 8
cmp eax, 0x44
jb 0x402a31
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax*4]
mov edx, dword [esp + 0xd0]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x10
jb 0x402a50
xor eax, eax
add esp, 0xcc
ret