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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, ecx
push ebx
cmp byte [eax + 2], 0
push esi
movzx esi, byte [eax + 0xa]
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
je 0x100d139f
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x10]
add ebx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
cmp ebx, 0x80
jae 0x100d136c
mov byte [esi + edx], bl
mov eax, 1
jmp 0x100d1387
mov ecx, dword [esp + 0x14]
mov eax, ebx
cdq
push edx
push eax
lea ecx, [esi + ecx]
call fcn.100e8bd0
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add esp, 8
push dword [ecx + 0xc]
movzx eax, al
push dword [ecx + 8]
add esi, eax
lea ecx, [esi + edx]
call fcn.100e8bd0
add esp, 8
jmp 0x100d13de
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov edi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
cmp ebx, 0x80
jae 0x100d13c7
mov byte [esi + edx], bl
mov eax, 1
jmp 0x100d13db
mov ecx, dword [esp + 0x14]
mov eax, ebx
cdq
push edx
push eax
lea ecx, [esi + ecx]
call fcn.100e8bd0
add esp, 8
movzx eax, al
add esi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
movzx ecx, word [eax + 0xe]
add esi, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
cmp ebx, ecx
jg 0x100d1439
mov ecx, dword [esp + 0x24]
add ecx, ebx
mov eax, 4
cmp ecx, eax
push edi
push dword [esp + 0x14]
cmovl ecx, eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], ecx
call fcn.100086a0
add esp, 0xc
sub ebx, edi
push ebx
lea eax, [esi + edi]
push 0
push eax
call fcn.10003750
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [eax + 0x10]
mov edi, dword [eax + 0x34]
xor edx, edx
mov ecx, dword [edi + 0x28]
sub ecx, 4
mov eax, ebx
sub eax, esi
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], edi
add edx, esi
cmp edx, dword [esp + 0x2c]
cmovg edx, esi
mov esi, dword [esp + 0x24]
add esi, edx
lea ecx, [esi + 4]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
add eax, esi
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
jmp 0x100d1490
cmp ecx, edx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
cmovg esi, edx
cmp ecx, esi
jl 0x100d14ac
push esi
push dword [esp + 0x14]
push eax
call fcn.100086a0
jmp 0x100d14c8
test ecx, ecx
jle 0x100d14bf
push ecx
push dword [esp + 0x14]
mov esi, ecx
push eax
call fcn.100086a0
jmp 0x100d14c8
push esi
push 0
push eax
call fcn.10003750
mov ecx, dword [esp + 0x24]
sub ecx, esi
add esp, 0xc
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x100d166f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add dword [esp + 0x10], esi
sub dword [esp + 0x1c], esi
add eax, esi
sub edx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jne 0x100d1490
cmp byte [edi + 0x11], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], ebx
je 0x100d155e
lea ecx, [ecx]
inc ebx
cmp ebx, 2
jae 0x100d151a
xor ecx, ecx
jmp 0x100d1547
mov eax, 0xcccccccd
mul dword [edi + 0x28]
mov esi, edx
shr esi, 2
xor edx, edx
inc esi
lea eax, [ebx - 2]
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [0x101270ac]
imul ecx, esi
div dword [edi + 0x24]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x100d1547
inc ecx
cmp ecx, ebx
je 0x100d1510
mov eax, dword [0x101270ac]
xor edx, edx
div dword [edi + 0x24]
inc eax
cmp ebx, eax
je 0x100d1510
mov dword [esp + 0x24], ebx
push 0
lea eax, [esp + 0x28]
push ebx
push eax
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.100d1ae0
mov ebx, dword [esp + 0x30]
add esp, 0xc
cmp byte [edi + 0x11], 0
mov esi, eax
mov dword [esp + 0x28], esi
je 0x100d15c2
test esi, esi
jne 0x100d1659
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push eax
test eax, eax
setne al
add al, 3
movzx eax, al
push eax
mov edx, ebx
mov ecx, edi
call fcn.100d6f60
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
je 0x100d15ca
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100d15c2
call fcn.100d5a50
test esi, esi
jne 0x100d1659
mov ecx, dword [esp + 0x2c]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100d162f
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100d1628
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
mov edi, dword [esi]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100070f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
jmp 0x100d162f
mov ecx, edx
call fcn.100e2fe0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x2c], ecx
mov dword [ecx], 0
mov eax, dword [eax + 0x38]
mov edx, dword [edi + 0x28]
add eax, 4
mov dword [esp + 0x20], eax
sub edx, 4
jmp 0x100d1483
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100d1666
call fcn.100d5a50
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100d167c
call fcn.100d5a50
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret