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

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x6c]
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], eax
call fcn.100a68b0
add esp, 0xc
cmp dword [edi + 4], 0x71028338
mov ebx, esi
mov dword [esp + 0x38], ebx
jne 0x100a6f3d
movzx esi, word [edi + 0x18]
mov dword [esp + 0x58], esi
test esi, esi
je 0x100a6f3d
cmp word [edi + 0x14], 0
jne 0x100a6e50
mov ax, word [edi + 0x12]
imul ax, word [edi + 0xa]
movzx eax, ax
jmp 0x100a6e54
movzx eax, word [edi + 0xa]
xor edx, edx
mov dword [esp + 0x14], eax
test ax, ax
mov eax, ebp
je 0x100a6e74
movsx ecx, word [esp + 0x14]
div ecx
xor edx, edx
div esi
mov ebp, eax
mov dword [esp + 0x34], ebp
jmp 0x100a6e7c
div esi
mov ebp, eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x84]
test edx, edx
jne 0x100a6f18
lea edx, [esp + 0x18]
push edx
call fcn.10009b30
movzx eax, ax
add esp, 4
mov dword [esp + 0x24], eax
test ax, ax
jne 0x100a76dd
mov edx, dword [esp + 0x84]
mov ax, word [esp + 0x78]
mov dword [esp + 0x20], 1
test ax, ax
jbe 0x100a6f1e
movzx ecx, ax
cmp ecx, esi
mov dword [esp + 0x70], ecx
jge 0x100a6f1e
mov ax, word [esp + 0x7c]
test ax, ax
jbe 0x100a6f1e
movzx eax, ax
cmp eax, ebp
mov dword [esp + 0x5c], eax
jge 0x100a6f1e
fild dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov edx, 1
mov esi, ecx
fidiv dword [esp + 0x70]
xor eax, eax
mov word [edi + 0x1a], si
mov word [edi + 8], ax
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], edx
fstp qword [esp + 0x50]
fild dword [esp + 0x34]
fidiv dword [esp + 0x5c]
fstp qword [esp + 0x5c]
jmp 0x100a6f69
mov dword [esp + 0x18], edx
jmp 0x100a6eaf
movzx eax, word [edi + 8]
mov dword [esp + 0x3c], eax
cmp ax, 1
jae 0x100a6f4a
test edx, edx
jne 0x100a6f3d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10009d90
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x58
ret
movzx ecx, ax
mov eax, ebp
cdq
idiv ecx
movzx esi, word [edi + 0x1a]
mov edx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
mov eax, ecx
imul eax, ecx
mov dword [esp + 0x50], eax
cmp word [edi + 0x14], 0
mov dword [esp + 0x70], esi
jne 0x100a6f87
movzx ebp, word [edi + 0x12]
mov eax, ebp
imul eax, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x48], eax
jmp 0x100a6f8b
mov ebp, dword [esp + 0x20]
movsx ecx, word [esp + 0x14]
movzx eax, word [edi + 0x18]
imul eax, ecx
cmp word [edi + 0x48], 0
mov dword [esp + 0x4c], eax
je 0x100a6fac
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x18]
mov eax, esi
imul eax, ebp
add eax, eax
add eax, eax
push eax
push ecx
mov dword [esp + 0x6c], eax
call fcn.10009ed0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100a6ff3
cmp dword [esp + 0x84], 0
jne 0x100a6fe6
mov edx, dword [esp + 0x18]
push edx
call fcn.10009d90
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x66
pop ebx
add esp, 0x58
ret
cmp dword [esp + 0x40], 0
je 0x100a70ef
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
add edi, edi
add edi, edi
push edi
push eax
call fcn.10009ed0
mov edx, dword [esp + 0x20]
lea ecx, [edi + 4]
push ecx
mov esi, eax
push edx
mov dword [esp + 0x38], esi
call fcn.10009ed0
mov edx, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4 + 4]
push ecx
push edx
mov dword [esp + 0x48], ebp
call fcn.10009ed0
add esp, 0x18
mov dword [esp + 0x44], eax
test esi, esi
je 0x100a70c7
test ebp, ebp
je 0x100a70c7
test eax, eax
je 0x100a70c7
xor esi, esi
cmp dword [esp + 0x70], esi
mov dword [esp + 0x1c], esi
jle 0x100a7080
fld qword [esp + 0x50]
fild dword [esp + 0x1c]
fmul st(1)
call fcn.1012b4f0
mov dword [ebp + esi*4], eax
inc esi
cmp esi, dword [esp + 0x70]
mov dword [esp + 0x1c], esi
jl 0x100a7064
fstp st(0)
mov eax, dword [esp + 0x58]
xor esi, esi
cmp dword [esp + 0x2c], esi
mov dword [edi + ebp], eax
mov dword [esp + 0x1c], esi
jle 0x100a70b6
fld qword [esp + 0x5c]
mov edi, dword [esp + 0x44]
fild dword [esp + 0x1c]
fmul st(1)
call fcn.1012b4f0
mov dword [edi + esi*4], eax
inc esi
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
jl 0x100a709b
fstp st(0)
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
jmp 0x100a70f3
cmp dword [esp + 0x84], 0
jne 0x100a6fe6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10009d90
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x66
pop ebx
add esp, 0x58
ret
mov ebp, dword [esp + 0x30]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
jle 0x100a76c1
mov esi, dword [esp + 0x6c]
jmp 0x100a7114
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
push edx
push 0
push eax
call fcn.1002a420
add esp, 0xc
cmp dword [esp + 0x40], 0
je 0x100a73f4
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + ecx*4 + 4]
sub eax, dword [edx + ecx*4]
mov edx, dword [esp + 0x28]
lea ecx, [edi*4]
push ecx
push 0
push edx
mov dword [esp + 0x68], eax
call fcn.1002a420
add esp, 0xc
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x34], 0
jle 0x100a72d5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp eax, 1
jne 0x100a7240
cmp cx, ax
jne 0x100a71e3
xor esi, esi
test edi, edi
jle 0x100a72b2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x70]
sub ecx, ebp
mov eax, ebp
sub edx, ebp
mov dword [esp + 0x58], edi
lea ebx, [ebx]
mov edi, dword [eax + 4]
sub edi, dword [eax]
test edi, edi
jle 0x100a71d4
lea esp, [esp]
movzx ebp, byte [esi + ebx]
add dword [ecx + eax], ebp
inc dword [edx + eax]
inc esi
sub edi, 1
jne 0x100a71c0
mov ebp, dword [esp + 0x30]
add eax, 4
sub dword [esp + 0x58], 1
jne 0x100a71b0
jmp 0x100a72b2
cmp cx, 2
jne 0x100a76b9
xor esi, esi
test edi, edi
jle 0x100a72b2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x70]
sub ecx, ebp
mov eax, ebp
sub edx, ebp
mov dword [esp + 0x58], edi
lea ecx, [ecx]
mov edi, dword [eax + 4]
sub edi, dword [eax]
test edi, edi
jle 0x100a7234
lea esp, [esp]
movzx ebp, word [ebx + esi*2]
add dword [eax + ecx], ebp
inc dword [eax + edx]
inc esi
sub edi, 1
jne 0x100a7220
mov ebp, dword [esp + 0x30]
add eax, 4
sub dword [esp + 0x58], 1
jne 0x100a7210
jmp 0x100a72b2
cmp eax, 3
jne 0x100a76b9
cmp cx, 1
jne 0x100a76b9
xor ecx, ecx
test edi, edi
jle 0x100a72b2
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x70]
add eax, 8
mov edx, ebp
sub esi, ebp
mov dword [esp + 0x58], edi
mov edi, dword [edx + 4]
sub edi, dword [edx]
test edi, edi
jle 0x100a72a5
lea esp, [esp]
movzx ebp, byte [ecx + ebx]
add dword [eax - 8], ebp
movzx ebp, byte [ecx + ebx + 1]
add dword [eax - 4], ebp
inc ecx
movzx ebp, byte [ecx + ebx + 1]
add dword [eax], ebp
inc dword [edx + esi]
inc ecx
inc ecx
sub edi, 1
jne 0x100a7280
mov ebp, dword [esp + 0x30]
add edx, 4
add eax, 0xc
sub dword [esp + 0x58], 1
jne 0x100a7270
mov eax, dword [esp + 0x34]
add ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x70]
inc eax
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
jl 0x100a7174
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x100a738e
mov eax, dword [esp + 0x14]
cmp ax, 1
jne 0x100a7338
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x3a]
mov ebp, dword [ecx]
xor ecx, ecx
cmp dword [esp + 0x70], ecx
jle 0x100a75ec
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
sub eax, esi
mov dword [esp + 0x5c], eax
nop
mov edi, dword [eax + esi]
test edi, edi
je 0x100a7325
mov eax, dword [esi]
cdq
idiv edi
mov byte [ecx + ebp], al
mov eax, dword [esp + 0x5c]
jmp 0x100a7329
mov byte [ecx + ebp], 0
inc ecx
add esi, 4
cmp ecx, dword [esp + 0x70]
jl 0x100a7310
jmp 0x100a75ec
cmp ax, 2
jne 0x100a75ec
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 0x3a]
mov ebp, dword [eax]
xor ecx, ecx
cmp dword [esp + 0x70], ecx
jle 0x100a75ec
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
sub ebx, esi
mov edi, dword [esi + ebx]
test edi, edi
je 0x100a7374
mov eax, dword [esi]
cdq
idiv edi
mov word [ebp + ecx*2], ax
jmp 0x100a737b
xor edx, edx
mov word [ebp + ecx*2], dx
inc ecx
add esi, 4
cmp ecx, dword [esp + 0x70]
jl 0x100a7361
mov ebx, dword [esp + 0x38]
jmp 0x100a75ec
cmp eax, 3
jne 0x100a75ec
mov eax, dword [esi + 0x3a]
mov eax, dword [eax]
xor esi, esi
test edi, edi
jle 0x100a75ec
mov ebp, dword [esp + 0x10]
lea ecx, [eax + 1]
add ebp, 8
mov edx, dword [esp + 0x28]
mov edi, dword [edx + esi*4]
test edi, edi
je 0x100a73d7
mov eax, dword [ebp - 8]
cdq
idiv edi
mov byte [ecx - 1], al
mov eax, dword [ebp - 4]
cdq
idiv edi
mov byte [ecx], al
mov eax, dword [ebp]
cdq
idiv edi
mov byte [ecx + 1], al
jmp 0x100a73e2
mov byte [ecx - 1], 0
mov byte [ecx], 0
mov byte [ecx + 1], 0
inc esi
add ebp, 0xc
add ecx, 3
cmp esi, dword [esp + 0x70]
jl 0x100a73b0
jmp 0x100a75ec
movzx edx, word [esp + 0x3c]
mov dword [esp + 0x34], 0
test edx, edx
jle 0x100a7540
lea esp, [esp]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp eax, 1
jne 0x100a74ad
cmp cx, ax
jne 0x100a745f
test edi, edi
jle 0x100a751a
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
mov esi, ebx
test edx, edx
jle 0x100a744b
mov ecx, esi
mov edi, edi
movzx ebp, byte [ecx]
add dword [eax], ebp
inc ecx
sub edx, 1
jne 0x100a7440
movzx edx, word [esp + 0x3c]
add eax, 4
add esi, edx
sub edi, 1
jne 0x100a7438
jmp 0x100a751a
cmp cx, 2
jne 0x100a76b9
test edi, edi
jle 0x100a751a
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
lea ebp, [edx + edx]
mov esi, ebx
mov edi, edi
movzx edx, word [esp + 0x3c]
test edx, edx
jle 0x100a749d
mov ecx, esi
jmp 0x100a7490
movzx ebx, word [ecx]
add dword [eax], ebx
add ecx, 2
sub edx, 1
jne 0x100a7490
add eax, 4
add esi, ebp
sub edi, 1
jne 0x100a7480
mov ebx, dword [esp + 0x38]
jmp 0x100a751a
cmp eax, 3
jne 0x100a76b9
cmp cx, 1
jne 0x100a76b9
test edi, edi
jle 0x100a751a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x48]
lea edi, [ebx + 2]
add ecx, 8
mov dword [esp + 0x5c], eax
lea ebx, [ebx]
test ebp, ebp
jle 0x100a750e
lea edx, [ebp - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov esi, edi
inc edx
movzx eax, byte [esi - 2]
add dword [ecx - 8], eax
movzx eax, byte [esi - 1]
add dword [ecx - 4], eax
movzx eax, byte [esi]
add dword [ecx], eax
add esi, 3
sub edx, 1
jne 0x100a74f3
add ecx, 0xc
add edi, ebp
sub dword [esp + 0x5c], 1
jne 0x100a74e0
mov eax, dword [esp + 0x34]
movzx edx, word [esp + 0x3c]
add ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x70]
inc eax
cmp eax, edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
jl 0x100a7410
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x100a75a6
mov eax, dword [esp + 0x14]
cmp ax, 1
jne 0x100a757b
mov ecx, dword [esi + 0x3a]
mov esi, dword [ecx]
xor ecx, ecx
test edi, edi
jle 0x100a75ec
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4]
cdq
idiv ebp
inc ecx
cmp ecx, edi
mov byte [esi + ecx - 1], al
jl 0x100a7566
jmp 0x100a75ec
cmp ax, 2
jne 0x100a75ec
mov eax, dword [esi + 0x3a]
mov esi, dword [eax]
xor ecx, ecx
test edi, edi
jle 0x100a75ec
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4]
cdq
idiv ebp
inc ecx
cmp ecx, edi
mov word [esi + ecx*2 - 2], ax
jl 0x100a7590
jmp 0x100a75ec
cmp eax, 3
jne 0x100a75ec
mov eax, dword [esi + 0x3a]
mov eax, dword [eax]
test edi, edi
jle 0x100a75ec
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x50]
lea esi, [eax + 1]
add ecx, 8
mov eax, dword [ecx - 8]
cdq
idiv ebp
add ecx, 0xc
add esi, 3
mov byte [esi - 4], al
mov eax, dword [ecx - 0x10]
cdq
idiv ebp
mov byte [esi - 3], al
mov eax, dword [ecx - 0xc]
cdq
idiv ebp
sub edi, 1
mov byte [esi - 2], al
jne 0x100a75c6
mov esi, dword [esp + 0x6c]
cmp word [esi + 0x30], 0
je 0x100a7610
movsx eax, word [esp + 0x14]
movzx ecx, word [esi + 0x1a]
mov edx, dword [esi + 0x3a]
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.100a6850
add esp, 0xc
inc word [esi + 0x24]
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov word [esi + 0x20], cx
movzx ecx, word [esi + 0x24]
test eax, eax
je 0x100a763c
cmp cx, word [esi + 0x3e]
jae 0x100a763c
movzx ecx, cx
lea edx, [ecx + ecx*2]
mov ecx, dword [esi + 0x3a]
lea eax, [eax + edx*4]
mov dword [ecx + 8], eax
jmp 0x100a768b
mov edx, dword [esi]
push 0xc
push edx
call fcn.10009ed0
mov ecx, dword [esi + 0x3a]
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x3a]
add esp, 8
cmp dword [edx + 8], 0
je 0x100a70c7
movzx ecx, word [esi + 0x1a]
movsx eax, word [esp + 0x14]
mov edx, dword [esi]
imul ecx, eax
push ecx
push edx
call fcn.10009ed0
mov ecx, dword [esi + 0x3a]
mov edx, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [esi + 0x3a]
mov ecx, dword [eax + 8]
add esp, 8
cmp dword [ecx], 0
je 0x100a6fcf
mov eax, dword [esi + 0x3a]
mov edx, dword [eax + 8]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x3a]
mov eax, dword [eax + 8]
mov dword [esi + 0x3a], eax
mov dword [eax + 8], 0
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x100a7110
jmp 0x100a76c1
mov dword [esp + 0x24], 0x12e
cmp dword [esp + 0x84], 0
jne 0x100a76d8
mov eax, dword [esp + 0x18]
push eax
call fcn.10009d90
add esp, 4
mov ax, word [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret