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

Disassembly:
push 0xffffffffffffffff
push 0x101ff96d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 0xd4]
xor edx, edx
div dword [ecx + 0x1c4]
xor edx, edx
push edi
mov dword [esp + 0xc], 1
mov edi, eax
div dword [ecx + 0xdc]
mov dword [esp + 0x14], edi
test edx, edx
je 0x100d34f3
mov eax, ecx
mov ecx, dword [eax + 0xdc]
sub edi, 1
xor edx, edx
mov eax, edi
div ecx
test edx, edx
jne 0x100d34e2
mov dword [esp + 0x14], edi
mov al, byte [esi + 0x70]
test al, al
mov byte [esp + 0xb], 1
je 0x100d3744
mov eax, dword [esi + 0x78]
add eax, eax
cmp eax, edi
jbe 0x100d3511
mov byte [esp + 0xb], 0
cmp dword [esi + 0x90], 0
ja 0x100d3744
cmp byte [esp + 0xb], 0
je 0x100d3744
mov eax, dword [esi + 0x54]
cmp byte [eax + 0x88], 0
jne 0x100d3744
mov eax, dword [eax + 0x38]
xor ecx, ecx
test eax, eax
je 0x100d3555
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100d3553
cmp dword [eax + 0xc], 0
jbe 0x100d3553
mov ecx, dword [ecx]
jmp 0x100d3555
xor ecx, ecx
push ebx
mov ebx, dword [ecx + 0x5c]
mov edi, dword [ebx + 0x48]
lea esp, [esp]
cmp byte [esp + 0xf], 0
je 0x100d3743
mov ecx, edi
sub edi, 1
test ecx, ecx
je 0x100d362a
lea ecx, [esp + 0x24]
call fcn.10058000
mov eax, dword [ebx + 0x44]
test eax, eax
mov dword [esp + 0x214], 0
je 0x100d359d
cmp edi, dword [ebx + 0x48]
jae 0x100d359d
mov ecx, dword [eax + edi*4]
jmp 0x100d359f
xor ecx, ecx
test ecx, ecx
mov eax, 1
je 0x100d35b9
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
call fcn.10058080
mov eax, dword [eax]
test al, 1
mov dword [esp + 0x10], eax
je 0x100d360b
cmp byte [esp + 0x24], 0x6d
jne 0x100d3603
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x64]
mov ecx, dword [ecx + 0x18]
and eax, 0x7fff
test ecx, ecx
je 0x100d3603
cmp eax, dword [ecx + 0xc]
jae 0x100d3603
mov edx, dword [ecx + 8]
test edx, edx
je 0x100d35f4
cmp eax, dword [ecx + 0xc]
jae 0x100d35f4
mov eax, dword [edx + eax*4]
jmp 0x100d35f6
xor eax, eax
and eax, 7
cmp eax, 7
jne 0x100d3603
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x214], 0xffffffff
call fcn.10058030
test byte [esp + 0x10], 1
jne 0x100d3560
cmp byte [esp + 0xf], 0
je 0x100d3743
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx + 8]
cmp byte [eax + 0x1c], 1
jne 0x100d3650
mov edx, dword [eax + 0x20]
add edx, 1
cmp edx, 0x10
jbe 0x100d3743
mov ecx, dword [esi + 0x5c]
xor edi, edi
push 0x20
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edi
call fcn.10107e10
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esi + 0x5c]
push edi
call fcn.100fc7d0
test byte [esp + 0x10], 1
je 0x100d36b9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x17]
push ecx
push 2
push 2
push 0x10
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.100d30c0
mov ecx, dword [eax]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
call dword [edx + 8]
test byte [esp + 0x10], 1
je 0x100d3743
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
xor bl, bl
call dword [eax + 0xc]
test byte [eax + 0x15], 0x20
je 0x100d36e8
push 2
mov ecx, esi
call fcn.100d1b70
cmp eax, 7
jbe 0x100d36e8
mov bl, 1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
ja 0x100d3743
test edi, edi
ja 0x100d3743
cmp byte [esp + 0xf], 0
jne 0x100d3743
test bl, bl
jne 0x100d3743
mov dword [esi + 0x74], eax
mov dword [esi + 0x8c], edi
mov byte [esi + 0x6f], 1
call fcn.10054450
test eax, eax
je 0x100d3727
mov ecx, dword [esi + 0x74]
push 0
push ecx
push 0x3f
call fcn.10054fa0
add esp, 0xc
call fcn.10054450
test eax, eax
je 0x100d3743
mov edx, dword [esi + 0x8c]
push 0
push edx
push 0x42
call fcn.10054fa0
add esp, 0xc
pop ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x218]
mov dword [eax], ecx
mov ecx, dword [esp + 0x208]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20c
ret 8