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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1021d635
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
call fcn.100caf3f
mov ecx, ebx
test al, al
je 0x100cf386
call fcn.1006c483
mov edx, dword [ebx + 0x64]
mov ecx, eax
add edx, dword [ebx + 0x5c]
xor edi, edi
add edx, dword [ebx + 0x54]
mov esi, 0x7fffffff
add edx, dword [ebx + 0x4c]
add edx, dword [ebx + 0x44]
add edx, dword [ebx + 0x3c]
mov eax, dword [ecx + 0xb4]
cmp eax, esi
cmove eax, edi
sub eax, edx
mov dword [ebx + 0xb4], eax
mov eax, dword [ecx + 0xb0]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
sub eax, edx
mov dword [ebx + 0xb0], eax
jmp 0x100cf7d2
call fcn.1006c483
add eax, 0x110
mov dword [esp + 0x28], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x100cf39f
mov esi, dword [ecx - 4]
jmp 0x100cf3a1
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.100caf6f
and dword [esp + 0x2c], 0
and dword [esp + 0x18], 0
dec esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], esi
js 0x100cf3da
mov ebx, dword [esp + 0x28]
imul edi, esi, 0x24
mov ecx, dword [ebx]
add ecx, edi
call fcn.100caed1
sub edi, 0x24
dec esi
jns 0x100cf3c8
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [ebx]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call dword [eax + 0x480]
xor ecx, ecx
mov esi, 0x7fffffff
mov edi, dword [eax + 8]
sub edi, dword [eax]
mov eax, dword [ebx + 0xb0]
inc edi
cmp eax, esi
mov dword [esp + 0x34], edi
cmove eax, ecx
cmp edi, eax
jge 0x100cf41d
mov edi, dword [ebx + 0xb0]
xor eax, eax
cmp edi, esi
cmove edi, eax
mov dword [esp + 0x34], edi
xor esi, esi
lea ecx, [esp + 0x78]
push ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call fcn.1000fdf5
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0x100cb3f5
mov dword [esp + 0x88], 0x100cb477
mov dword [esp + 0x9c], 1
mov dword [esp + 0x14], esi
mov dword [ebx + 0x114], esi
mov dword [ebx + 0x118], esi
mov dword [esp + 0x24], esi
jmp 0x100cf676
mov esi, dword [esp + 0x14]
mov ecx, esi
mov dword [esi + 0x88], edi
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
push dword [ebp + 0xc]
call fcn.1006f4d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x414]
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 0x20]
je 0x100cf4eb
mov eax, dword [esi + 0x20]
mov ecx, eax
push dword [ebp + 0xc]
mov dword [esp + 0x28], eax
call fcn.10044df0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x44]
call fcn.100cd04e
mov eax, dword [esp + 0x44]
cmp eax, dword [ebx + 0x114]
jle 0x100cf4d9
mov dword [ebx + 0x114], eax
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 0x118]
jle 0x100cf4eb
mov dword [ebx + 0x118], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x100cf65d
mov ebx, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x20], edx
test ecx, ecx
js 0x100cf527
push ecx
mov ecx, ebx
call fcn.100cae55
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
jmp 0x100cf52d
xor esi, esi
mov dword [esp + 0x30], esi
test esi, esi
je 0x100cf63e
mov eax, dword [esp + 0x28]
mov ecx, esi
push 0
push 0
push dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, dword [esi]
add edi, edx
call dword [eax + 0x11c]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0xc]
call dword [eax + 0x27c]
push dword [ebp + 0xc]
mov ecx, esi
call fcn.100cb089
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.100cb0f5
mov edx, eax
mov eax, dword [esp + 0x38]
cmp dword [edi], eax
jge 0x100cf587
mov ecx, eax
sub ecx, dword [edi]
add dword [esp + 0x2c], ecx
mov dword [edi], eax
cmp dword [edi + 4], edx
jge 0x100cf598
mov eax, edx
sub eax, dword [edi + 4]
add dword [esp + 0x18], eax
mov dword [edi + 4], edx
mov eax, dword [edi]
cmp dword [edi + 4], eax
jge 0x100cf5a2
mov dword [edi + 4], eax
add edi, 0x10
mov dword [esp + 0x38], edi
cmp dword [edi], 0
jne 0x100cf632
mov eax, dword [esi]
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call dword [eax + 0x39c]
cmp dword [eax], 0
jbe 0x100cf632
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call dword [eax + 0x39c]
cmp dword [esp + 0x54], 7
jne 0x100cf612
mov eax, dword [esi + 0x3c]
xor ecx, ecx
mov edi, dword [esi + 0x5c]
test eax, eax
push ecx
cmovns eax, ecx
add edi, dword [esi + 0x4c]
lea ecx, [esp + 0x58]
lea esi, [eax + edi]
call fcn.1002b1eb
mov ecx, dword [esp + 0x30]
add esi, eax
call fcn.1006bb31
mov ecx, dword [esp + 0x38]
add eax, esi
push eax
call fcn.1002b327
jmp 0x100cf632
cmp dword [esp + 0x54], 3
je 0x100cf626
cmp dword [esp + 0x54], 4
lea eax, [esi + 0x11c]
jne 0x100cf62a
lea eax, [esp + 0x54]
push eax
mov ecx, edi
call fcn.1002b04d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc ecx
add edx, 0x24
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, eax
jl 0x100cf507
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10004b2c
test al, al
je 0x100cf676
push esi
call fcn.100cb3a0
pop ecx
test al, al
je 0x100cf68c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x78]
call fcn.100cb211
test al, al
jne 0x100cf476
lea ecx, [esp + 0x74]
call fcn.100cb1bd
jmp 0x100cf6c1
mov esi, dword [esp + 0x14]
mov ecx, esi
mov dword [esi + 0x88], edi
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
push dword [ebp + 0xc]
call fcn.1006f4d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x414]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x78]
call fcn.100cb211
test al, al
jne 0x100cf697
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x100cf6e1
mov eax, dword [0x102b7738]
jmp 0x100cf6f6
cmp eax, dword [0x102b7738]
jne 0x100cf6f6
push 0
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.10079533
cmp dword [eax + 0x428], 6
jne 0x100cf788
cmp dword [eax + 0x42c], 0xa
jne 0x100cf788
xor edx, edx
xor esi, esi
mov dword [esp + 0x34], edx
cmp dword [esp + 0x10], edx
jle 0x100cf788
mov ebx, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
add ecx, 0x10
add ecx, edi
cmp dword [ecx], 3
jne 0x100cf739
movzx eax, word [ecx + 4]
cwde
add esi, eax
jmp 0x100cf74f
cmp dword [ecx], 7
jne 0x100cf74f
push 0
call fcn.1002b1eb
mov edx, dword [esp + 0x34]
add edx, eax
mov dword [esp + 0x34], edx
add edi, 0x24
dec ebx
jne 0x100cf720
mov ebx, dword [ebp + 8]
push 0x64
pop ecx
cmp esi, ecx
jl 0x100cf769
mov dword [esp + 0x18], 0x186a0
jmp 0x100cf788
test esi, esi
je 0x100cf788
imul eax, edx, 0x64
sub ecx, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
cmovle ecx, eax
mov eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x114]
add eax, dword [ebx + 0x118]
add eax, ecx
add eax, dword [esp + 0x18]
mov dword [ebx + 0xb4], eax
mov eax, dword [ebx + 0x114]
add eax, dword [ebx + 0x118]
or dword [esp + 0x9c], 0xffffffff
add eax, ecx
add eax, dword [esp + 0x2c]
lea ecx, [esp + 0x74]
mov dword [ebx + 0xb0], eax
call fcn.100cd87f
mov ecx, dword [esp + 0x94]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8