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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x60]
push ebx
push ebp
push esi
mov eax, dword [edx]
xor esi, esi
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0x2e0]
mov ecx, eax
and ecx, 0x400
mov dword [esp + 0x20], esi
cmp byte [edi + 0x19], 3
jne 0x831ff0
test ecx, ecx
je 0x831f98
lea eax, [esi + 0x26]
jmp 0x831fa4
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 6
mov ecx, dword [esp + 0x78]
mov ebp, 0xc
lea eax, [eax + ecx*2]
movzx esi, word [eax + edi + 0x1a]
add esi, edi
mov cl, byte [esi + 2]
movzx eax, cl
and al, 0x7f
mov dword [esp + 0x14], ecx
cmp al, 3
je 0x831fca
movzx ebp, word [esi]
add ebp, 9
cmp dword [esp + 0x80], 0
mov dword [esp + 0x70], ebp
je 0x831fec
cmp cl, 1
sete cl
lea ecx, [ecx*2 + 1]
mov dword [esp + 0x14], ecx
mov eax, esi
jmp 0x83203b
test ecx, ecx
je 0x831ffb
mov eax, 0x26
jmp 0x832007
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 6
mov ecx, dword [esp + 0x78]
lea eax, [eax + ecx*2]
add eax, 0x1a
movzx ebx, word [eax + edi]
mov al, byte [ebx + edi + 2]
add ebx, edi
mov dword [esp + 0x14], eax
movzx eax, al
and eax, 0x80
mov dword [esp + 0x20], ebx
movzx ebp, word [ebx]
mov dword [esp + 0x80], eax
mov eax, ebx
mov dword [esp + 0x70], ebp
add eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x83218d
mov eax, dword [edx + 8]
cmp dword [eax + 0x74], 0
je 0x83218d
test dword [edx + 0x13c], 0x2000
jne 0x83218d
mov eax, dword [eax + 0x80]
test eax, eax
je 0x83208c
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x83208c
test byte [eax + 0x31c], 8
jne 0x83218d
mov eax, dword [esp + 0x7c]
add eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [eax]
cmp ecx, ebp
mov eax, ebp
mov dword [esp + 0x18], ecx
cmovb eax, ecx
xor edx, edx
movzx ebx, ax
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x24], edx
cmp dx, bx
jae 0x8320d3
mov ebp, dword [esp + 0x7c]
mov ebp, dword [ebp]
sub ebp, eax
mov al, byte [ecx]
cmp al, byte [ecx + ebp]
jne 0x8320cf
inc edx
inc ecx
cmp dx, bx
jb 0x8320c1
mov ebp, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
sub ebx, edx
movzx eax, bx
dec ecx
xor ebx, ebx
mov dword [esp + 0x28], eax
add ecx, ebp
mov dword [esp + 0x24], ebx
cmp bx, ax
jae 0x83211d
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x18]
dec edi
mov eax, dword [eax]
sub eax, ecx
add eax, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov ebp, eax
mov al, byte [ecx]
cmp al, byte [ecx + ebp]
jne 0x832115
inc ebx
dec ecx
cmp bx, di
jb 0x832107
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
movzx edx, dx
add eax, edx
movzx ecx, bx
mov ebx, dword [esp + 0x7c]
sub ebp, ecx
mov dword [esp + 0x50], eax
sub ebp, edx
push ecx
push edx
mov eax, dword [ebx]
add eax, edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
sub eax, ecx
mov ebp, dword [esp + 0x24]
sub eax, edx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x90]
push dword [esp + 0x8c]
push edi
push dword [edi + 8]
push 0
push edi
push dword [esp + 0x54]
push ebp
call fcn.00819e90
add esp, 0x30
test eax, eax
jne 0x8322e2
mov ebx, dword [esp + 0x30]
jmp 0x8321a5
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x1c]
add ebx, 4
mov dword [edi], 0
mov dword [edi + 4], 1
mov eax, dword [ebp + 0x2e0]
test eax, 0x400
je 0x8321b9
mov eax, 0x26
jmp 0x8321c5
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 6
movzx ecx, word [edi + 0x16]
lea ebp, [eax + edi]
add ecx, edi
cmp byte [edi + 0x19], 3
jne 0x8321dd
mov ax, word [esi]
add ax, 0xf
jmp 0x8321ea
mov eax, dword [esp + 0x20]
mov esi, eax
mov ax, word [eax]
add ax, 6
movzx edx, ax
mov eax, ebx
mov dword [esp + 0x74], 0xfffc
and edx, 0xfffc
mov ax, word [eax]
add ax, 6
and ax, word [esp + 0x74]
cmp dx, ax
je 0x8322ac
movzx ebx, dx
movzx eax, ax
sub ebx, eax
mov eax, dword [esp + 0x78]
lea edx, [eax*2]
cmp ecx, esi
jne 0x832235
add word [edx + ebp + 0x1a], bx
lea eax, [edi + 0x16]
mov edx, eax
jmp 0x83229a
mov eax, esi
sub eax, ecx
push eax
push ecx
lea eax, [ebx + ecx]
push eax
call fcn.0086cdf0
mov eax, dword [esp + 0x84]
lea edx, [edi + 0x16]
add esp, 0xc
xor ecx, ecx
movzx eax, word [ebp + eax*2 + 0x1a]
mov dword [esp + 0x74], eax
xor eax, eax
cmp ax, word [edi + 0x14]
jae 0x832297
nop dword [eax]
nop dword [eax + eax]
movzx eax, cx
lea edx, [eax*2]
movzx eax, word [edx + ebp + 0x1a]
cmp ax, word [esp + 0x74]
ja 0x83228d
add eax, ebx
mov word [edx + ebp + 0x1a], ax
inc ecx
cmp cx, word [edi + 0x14]
jb 0x832270
lea edx, [edi + 0x16]
lea eax, [edi + 0x16]
mov ax, word [eax]
add esi, ebx
add ax, bx
mov ebx, dword [esp + 0x7c]
mov word [edx], ax
add ebx, 4
movzx eax, word [ebx]
mov ecx, dword [esp + 0x14]
push eax
mov word [esi], ax
and cl, 0x7f
mov eax, dword [esp + 0x80]
mov byte [esi + 2], cl
push dword [eax]
lea eax, [esi + 3]
push eax
call fcn.0086cdf0
add esp, 0xc
cmp byte [edi + 0x19], 3
jne 0x8322e0
mov eax, 0xfff7
add word [esi], ax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret