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

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0xdc
mov edx, dword [eax + 8]
test esi, esi
js 0x31dd32
lea ebp, [esi + 1]
cmp ebp, edx
jg 0x31dd32
mov ebx, eax
mov eax, dword [eax]
lea edi, [edx - 1]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
and eax, 3
cmp eax, 3
je 0x31dd00
test edi, edi
jne 0x31dcf0
mov dword [esp + 0x1c], 1
mov ecx, edx
test ecx, ecx
js 0x31debe
mov eax, 0
je 0x31dc8f
mov edx, 1
mov eax, ecx
call fcn.00314d50
mov edx, dword [ebx + 0x14]
imul edx, esi
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
not esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00331b54
mov edx, dword [ebx + 0x14]
add esi, dword [ebx + 8]
imul ebp, edx
imul esi, edx
mov eax, ebp
add ebp, dword [esp + 0x18]
sub eax, edx
add eax, dword [ebx]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00331b54
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, edi
mov dword [esp + 0x1c], edi
imul ecx, edx
jmp 0x31dc71
sub edi, esi
imul ebp, edx
imul edi, edx
mov dword [esp + 8], edi
mov edi, dword [esp + 0x18]
lea eax, [edi + ebp]
sub ebp, edx
add ebp, edi
mov dword [esp + 4], eax
mov dword [esp], ebp
call 0x33278c
sub dword [ebx + 8], 1
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea edi, [esp + 0x64]
mov ecx, 0x1b
mov dword [esp + 0x60], esi
rep stosd dword es:[edi], eax
mov eax, 0x100
mov dword [esp + 0x50], 0x335a24
mov dword [esp + 0x54], 0x27
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0xfe07
mov dword [esp + 0x70], 0x3350a8
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 0xfe10
mov dword [esp + 0x80], 0x3350a8
mov dword [esp + 0x88], 1
mov dword [esp + 0x90], 0x335a4c
mov dword [esp + 0x94], 0xb
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], 0xfe07
mov dword [esp + 0xa0], edx
mov dword [esp + 0xb0], 0x33596c
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], 1
call fcn.00317c30
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 1
test ecx, ecx
jne 0x31df7a
cmp dword [esp + 0x5c], 0
jne 0x31df68
mov ecx, dword [esp + 0x74]
test ecx, ecx
jne 0x31df48
cmp dword [esp + 0x7c], 0
jne 0x31df36
mov ecx, dword [esp + 0x94]
test ecx, ecx
jne 0x31df13
cmp dword [esp + 0x9c], 0
jne 0x31defe
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x31dee3
cmp dword [esp + 0xbc], 0
jne 0x31ded1
lea edx, [esp + 0x2b]
lea eax, [esp + 0x38]
mov byte [esp + 0x2b], 0
call fcn.003191b0
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x31dec5
mov esi, dword [esp + 0x38]
mov eax, ebx
call fcn.003175e0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00331b54
mov edi, dword [esp + 0x40]
xor ecx, ecx
lea edx, [edi - 1]
call fcn.003174a0
mov eax, ecx
call fcn.00317d80
mov eax, 1
call fcn.00317c30
jmp 0x31deb0
lea edx, [esp + 0x38]
lea eax, [esp + 0xb0]
call fcn.00315200
jmp 0x31de7b
mov edx, dword [esp + 0xb0]
jle 0x31de71
test edx, edx
je 0x31de71
lea eax, [esp + 0x38]
call fcn.00317fa0
jmp 0x31de71
lea edx, [esp + 0x38]
lea eax, [esp + 0x90]
call fcn.00315200
jmp 0x31de66
mov edx, dword [esp + 0x90]
jle 0x31de58
test edx, edx
je 0x31de58
lea eax, [esp + 0x38]
call fcn.00317fa0
jmp 0x31de58
lea edx, [esp + 0x38]
lea eax, [esp + 0x70]
call fcn.00315200
jmp 0x31de49
mov edx, dword [esp + 0x70]
jle 0x31de3e
test edx, edx
je 0x31de3e
lea eax, [esp + 0x38]
call fcn.00317fa0
jmp 0x31de3e
lea edx, [esp + 0x38]
lea eax, [esp + 0x50]
call fcn.00315200
jmp 0x31de32
mov edx, dword [esp + 0x50]
test edx, edx
je 0x31de27
test ecx, ecx
jle 0x31de27
lea eax, [esp + 0x38]
call fcn.00317fa0
jmp 0x31de27