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

Disassembly:
push 0xffffffffffffffff
push 0x10192b38
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov ebx, ecx
mov esi, dword [esp + 0x88]
mov eax, ebx
cdq
idiv esi
mov ecx, 1
mov dword [esp + 0x7c], ecx
lea edi, [esp + 0x7c]
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x101023c2
lea edi, [esp + 0x30]
mov eax, ebx
cdq
idiv dword [edi]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x7c], eax
mov eax, ebp
cdq
idiv edi
cmp eax, ecx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x30]
jl 0x101023eb
lea ecx, [esp + 0x2c]
mov eax, ebp
cdq
idiv dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax*4 + 4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x44]
call fcn.1006d890
mov dword [esp + 0x70], 0
cmp dword [esp + 0x7c], ebx
jl 0x1010242d
cmp dword [esp + 0x14], ebp
jge 0x10102562
mov edi, dword [esp + 0x24]
imul edi, dword [esp + 0x14]
lea esi, [esp + 0x44]
call fcn.10006150
mov eax, ebx
mov ebx, dword [esp + 0x7c]
cdq
idiv ebx
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, ebp
mov ebp, dword [esp + 0x14]
cdq
idiv ebp
cmp ebp, edi
mov ecx, eax
mov dword [esp + 0x3c], ecx
jle 0x10102541
imul eax, dword [esp + 0x80]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebp
xor esi, esi
test ebx, ebx
mov dword [esp + 0x28], esi
jle 0x10102524
lea eax, [edi + ecx]
imul ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
xor ebp, ebp
jmp 0x101024ab
mov eax, dword [esp + 0x34]
xor ebx, ebx
cmp edi, eax
jge 0x101024f5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x1c]
add edx, ecx
sub eax, edi
cmp ebp, esi
mov ecx, ebp
jge 0x101024e1
lea ebx, [ebx]
movzx edi, byte [edx + ecx]
add ecx, 1
add ebx, edi
cmp ecx, esi
jl 0x101024d0
mov edi, dword [esp + 0x2c]
add edx, dword [esp + 0x80]
sub eax, 1
jne 0x101024c4
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
xor edx, edx
mov eax, ebx
div ecx
mov edx, dword [esp + 0x20]
add ebp, dword [esp + 0x18]
add esi, 1
cmp esi, dword [esp + 0x7c]
mov dword [esp + 0x28], esi
mov byte [edx + esi - 1], al
jl 0x101024a7
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
add dword [esp + 0x1c], eax
add dword [esp + 0x20], edx
add edi, ecx
sub dword [esp + 0x30], 1
mov dword [esp + 0x2c], edi
jne 0x10102485
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], ecx
mov eax, ebx
shl eax, 0x10
cdq
idiv esi
mov dword [esp + 0x38], eax
mov eax, ebp
shl eax, 0x10
cdq
idiv edi
mov dword [esp + 0x20], eax
mov eax, ebx
shl eax, 0xf
cdq
idiv esi
shl ebx, 0x10
sub ebx, 0x10001
mov dword [esp + 0x30], ebx
mov ecx, eax
mov eax, ebp
shl eax, 0xf
cdq
idiv edi
shl ebp, 0x10
sub ecx, 0x8000
sub ebp, 0x10001
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ebp
sub eax, 0x8000
test edi, edi
mov dword [esp + 0x7c], eax
jle 0x101026eb
mov edx, dword [esp + 0x84]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x8c], ecx
jle 0x101026cd
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x8c], eax
lea eax, [esp + 0x8c]
jl 0x10102601
lea eax, [esp + 0x30]
cmp dword [eax], 0
jge 0x1010260a
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x7c], ecx
mov esi, dword [eax]
lea eax, [esp + 0x7c]
jl 0x1010261e
lea eax, [esp + 0x2c]
cmp dword [eax], 0
jge 0x10102627
lea eax, [esp + 0x3c]
mov ecx, dword [eax]
mov ebp, dword [esp + 0x78]
mov eax, ecx
sar eax, 0x10
lea edi, [eax + 1]
imul eax, dword [esp + 0x80]
imul edi, dword [esp + 0x80]
mov edx, esi
sar edx, 0x10
add eax, edx
add edi, edx
mov edx, dword [esp + 0x78]
add eax, edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
and esi, 0xffff
add ebp, edi
imul edx, esi
mov edi, 0x10000
sub edi, esi
imul eax, edi
add edx, eax
and ecx, 0xffff
sar edx, 0x10
mov eax, 0x10000
sub eax, ecx
imul edx, eax
movzx eax, byte [ebp + 1]
imul eax, esi
movzx esi, byte [ebp]
imul esi, edi
add eax, esi
sar eax, 0x10
imul eax, ecx
mov ecx, dword [esp + 0x24]
add edx, eax
sar edx, 0x10
mov byte [ecx + ebx], dl
mov edx, dword [esp + 0x38]
add dword [esp + 0x8c], edx
add ebx, 1
cmp ebx, dword [esp + 0x88]
jl 0x101025e9
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x20]
add dword [esp + 0x24], eax
add dword [esp + 0x7c], edx
sub dword [esp + 0x28], 1
jne 0x101025d0
lea ecx, [esp + 0x60]
mov dword [esp + 0x70], 0xffffffff
call fcn.1005e680
cmp byte [esp + 0x55], 0
je 0x10102714
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10102714
push eax
call fcn.10178e5d
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret