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

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov ebp, esi
mov dword [esp + 0x3c], eax
push edi
mov edi, dword [esp + 0x78]
mov ebx, edi
sub ebx, dword [esp + 0x58]
mov eax, edi
mov dword [esp + 0x34], ecx
sbb ebp, dword [esp + 0x5c]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, esi
sbb eax, dword [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
neg eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
xor edx, edx
add eax, ecx
mov dword [esp + 0x28], ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x30], ecx
mov eax, edi
cmovae edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov edx, esi
call fcn.100568e0
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x30]
add eax, 0xffffffff
mov dword [esp + 0x48], eax
adc edx, 0xffffffff
and eax, edi
mov dword [esp + 0x4c], edx
and edx, esi
mov dword [esp + 0x10], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.10001a1f
mov edi, eax
push 0xa
pop edx
test edi, edi
jle 0x10001c7c
mov esi, dword [esp + 0x24]
xor edx, edx
mov eax, ecx
div esi
mov dword [esp + 0x38], edx
add al, 0x30
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [esp + 0x34]
mov byte [edx + ecx], al
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
inc dword [edx]
dec edi
xor edx, edx
mov dword [esp + 0x24], edi
call fcn.100568c0
mov edi, eax
mov eax, edx
add edi, dword [esp + 0x20]
adc eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
cmp eax, ebp
jb 0x10001d52
ja 0x10001c62
cmp edi, ebx
jbe 0x10001d52
push 0xa
mov eax, esi
mov edi, dword [esp + 0x28]
xor edx, edx
pop ecx
div ecx
mov ecx, dword [esp + 0x38]
mov esi, eax
test edi, edi
jg 0x10001c0d
push 0xa
pop edx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mul edx
push 0xa
mov ecx, eax
mov eax, dword [esp + 0x24]
pop edx
mul edx
add ecx, edx
mov edi, eax
mov dword [esp + 0x10], ecx
mov edx, ecx
mov ecx, dword [esp + 0x1c]
call fcn.100568e0
mov edx, dword [esp + 0x18]
add al, 0x30
push 0xa
and edi, dword [esp + 0x4c]
mov dword [esp + 0x24], edi
mov ecx, dword [edx]
mov edx, dword [esp + 0x38]
mov byte [edx + ecx], al
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
and eax, dword [esp + 0x50]
mov ecx, eax
mov dword [esp + 0x14], eax
inc dword [edx]
mov eax, ebp
pop edx
mul edx
push 0xa
mov ebp, eax
inc dword [esp + 0x2c]
pop edx
mov eax, ebx
mul edx
push 0xa
add ebp, edx
mov ebx, eax
pop edx
mov eax, esi
mul edx
push 0xa
mov esi, eax
mov eax, dword [esp + 0x18]
pop edx
mul edx
push 0xa
add esi, edx
mov dword [esp + 0x18], eax
pop edx
cmp ecx, ebp
ja 0x10001c88
jb 0x10001d1c
cmp edi, ebx
ja 0x10001c88
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
sub dword [edx], eax
push dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push ecx
mov edx, dword [edx]
mov ecx, dword [esp + 0x40]
push edi
push ebp
push ebx
push esi
push eax
call fcn.10001a98
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add dword [edx], eax
mov eax, esi
xor edx, edx
call fcn.100568c0
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x10001d26