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

Disassembly:
sub esp, 0x124
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x130]
push esi
push edi
mov edx, dword [ebp + 0x88]
mov ecx, 0x48
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test edx, edx
mov dword [esp + 0x14], 0x10305
jbe 0x10080a3e
mov esi, dword [ebp + 0x8c]
mov edi, dword [ebx]
mov ecx, esi
cmp dword [ecx], edi
jg 0x10080a2d
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x10080a21
test eax, eax
jbe 0x10080a3e
shl eax, 4
lea eax, [eax + esi - 0x10]
mov dword [esp + 0x18], eax
jmp 0x10080a46
mov dword [esp + 0x18], 0
mov ecx, dword [ebp]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 4]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edx
xor eax, eax
lea ecx, [ebp + 0x44]
mov edx, dword [ecx - 0xc]
add ecx, 4
mov dword [esp + eax*4 + 0x34], edx
mov edx, dword [ecx - 4]
mov dword [esp + eax*4 + 0x40], edx
inc eax
cmp eax, 3
jb 0x10080a89
mov eax, dword [ebp + 0xa4]
mov ecx, 1
mov dword [esp + 0x4c], ecx
mov esi, dword [ebp + 8]
mov edx, dword [eax + 0x38]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x54], edx
mov edx, dword [ebx + 0x3c]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x58], eax
mov dword [esp + 0x7c], edx
mov edx, dword [ebx]
mov eax, esi
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x144]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x60], esi
shr eax, 1
cmp edx, 8
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
jne 0x10080b5d
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x14c]
mov ecx, dword [eax]
mov eax, dword [edx]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0xbc], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd4], eax
jmp 0x10080e5b
cmp edx, 0x10
jne 0x10080c16
mov ecx, dword [ebx + 0x14]
mov al, byte [ebp + 0x18]
mov edx, dword [ebx + 0x18]
inc ecx
test al, 4
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
je 0x10080bb4
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x98]
imul ecx, dword [esp + 0x24]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], edx
shl ecx, 2
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test byte [ebp + 0x18], 8
je 0x10080e5b
xor esi, esi
call dword [0x10198768]
mov eax, dword [ebp + 0x9c]
xor edx, edx
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jbe 0x10080e5b
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jbe 0x10080c09
mov eax, 6
mov edi, dword [esp + 0xd8]
inc esi
dec eax
mov dword [edi + esi*4 - 4], 0x3f800000
jne 0x10080bee
mov eax, dword [ebp + 0x10]
inc ecx
cmp ecx, eax
jb 0x10080be9
mov eax, dword [ebp + 0x14]
inc edx
cmp edx, eax
jb 0x10080be0
jmp 0x10080e5b
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x140]
test dl, 1
mov dword [esp + 0x10], edx
je 0x10080c6a
mov edx, dword [edi]
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x9c], edx
mov edx, dword [edi + 8]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
test byte [ebx + 8], 2
jne 0x10080c75
test dl, 2
je 0x10080ce3
mov ax, word [ebp + 4]
mov dx, word [ebp]
push eax
mov ax, word [ebp + 8]
push edx
push eax
push ecx
mov ecx, dword [edi]
push ecx
call fcn.1007e3a0
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x100], eax
mov eax, dword [ebp]
shr edx, 1
shr eax, 1
push edx
mov edx, dword [ebx + 0x3c]
shr ecx, 1
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call fcn.1007e3a0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
shr ecx, 1
shr edx, 1
push ecx
mov ecx, dword [ebx + 0x40]
shr eax, 1
push edx
mov edx, dword [edi + 8]
push eax
push ecx
push edx
call fcn.1007e3a0
add esp, 0x3c
mov dword [esp + 0xf4], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
inc eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], eax
mov al, byte [ebp + 0x18]
test al, 4
je 0x10080d63
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x98]
mov eax, dword [ebp + 0x10]
xor esi, esi
test ecx, ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], eax
jbe 0x10080d63
xor ecx, ecx
test eax, eax
jbe 0x10080d5b
imul eax, esi
add eax, ecx
mov edi, esi
imul edi, dword [esp + 0xc8]
lea edx, [eax + eax*2]
add edi, ecx
inc ecx
lea edx, [edx + edx*4]
lea eax, [eax + edx*4]
mov edx, dword [ebx + 0x44]
mov eax, dword [edx + eax*8 + 0x174]
mov edx, dword [esp + 0xc4]
mov dword [edx + edi*4], eax
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jb 0x10080d25
mov ecx, dword [ebp + 0x14]
inc esi
cmp esi, ecx
jb 0x10080d1f
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x12c]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0xd0], eax
mov dword [esp + 0x10c], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0xcc], edx
mov dword [esp + 0x110], edx
mov dword [esp + 0xe4], edi
mov edi, dword [ebx + 0x130]
mov dword [esp + 0xd4], ecx
mov ecx, dword [ebx + 0x118]
mov dword [esp + 0xe8], edi
mov edi, dword [ebx + 0x14]
mov dword [esp + 0xdc], ecx
cdq
and edx, 7
mov esi, dword [ebx + 0x128]
add eax, edx
mov dword [esp + 0x114], ecx
sar eax, 3
mov edx, dword [esp + 0xec]
inc edi
sub ecx, eax
mov eax, dword [ebx + 0x12c]
mov dword [esp + 0x104], edi
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x120], eax
mov eax, dword [ebx + 0x130]
mov dword [esp + 0x108], edi
mov edi, dword [esp + 0x150]
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xf0]
test edi, edi
mov dword [esp + 0xe0], esi
mov dword [esp + 0x11c], esi
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], ecx
je 0x10080e5b
mov ecx, 0xd
lea esi, [esp + 0x100]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x90]
mov edi, dword [esp + 0x144]
xor esi, esi
test eax, eax
jbe 0x10080ea0
call dword [0x10198768]
mov edx, dword [ebp + 0x94]
mov ecx, dword [edx + esi*8]
lea eax, [edx + esi*8]
test ecx, ecx
je 0x10080e95
mov eax, dword [eax + 4]
lea edx, [esp + 0x14]
push 0
push edx
push edi
push eax
call ecx
add esp, 0x10
mov eax, dword [ebp + 0x90]
inc esi
cmp esi, eax
jb 0x10080e6e
call dword [0x10198768]
cmp edi, 8
jne 0x10080efd
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
test eax, eax
mov dword [edx], ecx
jg 0x10080ecb
mov eax, 2
mov ecx, dword [esp + 0x14c]
mov edx, dword [esp + 0xd0]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xcc]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
pop ebp
pop ebx
add esp, 0x124
ret
cmp edi, 0x10
jne 0x1008108b
test byte [ebp + 0x18], 4
mov eax, dword [ebp + 0x14]
je 0x10080f6b
xor edx, edx
test eax, eax
mov dword [esp + 0x10], edx
jbe 0x10080fa4
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jbe 0x10080f5d
imul eax, edx
mov esi, edx
add eax, ecx
imul esi, dword [esp + 0x24]
mov edi, dword [esp + 0xc4]
lea edx, [eax + eax*2]
add esi, ecx
inc ecx
lea edx, [edx + edx*4]
mov esi, dword [edi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebx + 0x44]
mov dword [edx + eax*8 + 0x174], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, eax
jb 0x10080f26
mov ecx, dword [ebp + 0x14]
inc edx
cmp edx, ecx
mov dword [esp + 0x10], edx
jb 0x10080f20
jmp 0x10080fa4
xor esi, esi
test eax, eax
jbe 0x10080fa4
mov eax, dword [ebp + 0x10]
xor edi, edi
xor ecx, ecx
cmp eax, edi
jbe 0x10080f9c
imul eax, esi
add eax, ecx
inc ecx
lea edx, [eax + eax*2]
lea edx, [edx + edx*4]
lea eax, [eax + edx*4]
mov edx, dword [ebx + 0x44]
mov dword [edx + eax*8 + 0x174], edi
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jb 0x10080f7c
mov ecx, dword [ebp + 0x14]
inc esi
cmp esi, ecx
jb 0x10080f74
test byte [ebp + 0x18], 8
mov eax, dword [ebp + 0x14]
je 0x10081032
test eax, eax
mov dword [esp + 0x10], 0
jbe 0x1008107b
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
jbe 0x10081020
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xd8]
imul eax, dword [esp + 0x24]
add eax, edi
lea eax, [eax + eax*2]
lea ecx, [esi + eax*2]
fld dword [edx + ecx*4]
fmul dword [0x100f34e8]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 0x10]
imul ecx, dword [esp + 0x10]
add ecx, edi
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea edx, [esi + ecx*2]
mov ecx, dword [ebx + 0x44]
inc esi
cmp esi, 6
mov dword [ecx + edx*4 + 0x17c], eax
jb 0x10080fcc
mov eax, dword [ebp + 0x10]
inc edi
cmp edi, eax
jb 0x10080fca
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x10080fc1
jmp 0x1008107b
xor edi, edi
test eax, eax
jbe 0x1008107b
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
jbe 0x10081073
xor ecx, ecx
mov eax, dword [ebp + 0x10]
imul eax, edi
add eax, esi
lea edx, [eax + eax*2]
lea edx, [edx + edx*4]
lea eax, [eax + edx*4]
lea edx, [ecx + eax*2]
mov eax, dword [ebx + 0x44]
inc ecx
cmp ecx, 6
mov dword [eax + edx*4 + 0x17c], 0x40
jb 0x10081043
mov eax, dword [ebp + 0x10]
inc esi
cmp esi, eax
jb 0x10081041
mov eax, dword [ebp + 0x14]
inc edi
cmp edi, eax
jb 0x10081038
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0xc0]
mov dword [ecx + 0xf0], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret