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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
cmp word [edi + 0x38], 0xef53
jne 0x1001d90b
mov eax, dword [edi + 0x18]
xor ebp, ebp
mov dword [esi], eax
mov eax, dword [edi + 0x1c]
cmp eax, ebp
mov dword [esi + 4], eax
je 0x1001d6ba
cmp dword [esi], eax
jne 0x1001d90b
mov eax, dword [esi]
cmp eax, 6
ja 0x1001d90b
lea ecx, [eax + 0xa]
mov dword [esi], ecx
mov eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebp
mov eax, dword [edi + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebp
mov eax, dword [edi + 0x10]
cmp edx, 2
mov dword [esi + 0x20], eax
jb 0x1001d90b
cmp edx, eax
jbe 0x1001d90b
xor eax, eax
cmp ecx, 0xa
sete al
cmp dword [edi + 0x14], eax
jne 0x1001d90b
mov eax, dword [edi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x24]
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x28], eax
cmp ebx, eax
jne 0x1001d90b
cmp ebx, ebp
je 0x1001d90b
mov eax, dword [edi + 0x28]
cmp eax, 1
mov dword [esi + 0x2c], eax
jb 0x1001d90b
cmp eax, edx
ja 0x1001d90b
mov eax, dword [edi + 0x2c]
push 0xb
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x4c]
pop edx
cmp eax, ebp
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov word [esi + 0x48], 0x80
je 0x1001d7bd
mov eax, dword [edi + 0x54]
mov dword [esi + 0x44], eax
mov ax, word [edi + 0x58]
cmp dword [esi + 0x44], edx
mov word [esi + 0x48], ax
jb 0x1001d90b
push 1
pop ebx
shl ebx, cl
movzx edx, ax
cmp edx, ebx
ja 0x1001d90b
cmp ax, 0x80
jb 0x1001d90b
xor ecx, ecx
push 1
pop eax
shl eax, cl
cmp eax, edx
je 0x1001d7b5
inc ecx
cmp ecx, 0x20
jb 0x1001d7a3
or ecx, 0xffffffff
cmp ecx, ebp
jl 0x1001d90b
mov ax, word [edi + 0x5a]
push 0x10
mov word [esi + 0x4a], ax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x54], eax
lea eax, [edi + 0x68]
push eax
lea eax, [esi + 0x58]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 0x78]
push 0x10
push eax
lea eax, [esi + 0x68]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 0x88]
push 0x40
push eax
lea eax, [esi + 0x78]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0xe0]
add esp, 0x24
mov dword [esi + 0xb8], eax
mov ax, word [edi + 0xfe]
mov word [esi + 0xbc], ax
mov eax, dword [edi + 0x108]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x50]
shr eax, 7
test al, 1
je 0x1001d852
mov eax, dword [edi + 0x150]
or dword [esi + 0x10], ebp
or dword [esi + 0x14], eax
mov eax, dword [edi + 0x158]
or dword [esi + 0x18], ebp
or dword [esi + 0x1c], eax
mov ebp, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
push 0x3f
xor edx, edx
pop ecx
mov dword [esp + 0x10], ebp
sub ecx, dword [esi]
push 1
pop eax
call fcn.100e05e0
cmp ebx, edx
jb 0x1001d87d
ja 0x1001d90b
cmp ebp, eax
jae 0x1001d90b
mov ax, word [edi + 0x15c]
mov word [esi + 0xc4], ax
mov eax, dword [edi + 0x178]
mov dword [esi + 0xc8], eax
mov eax, dword [edi + 0x17c]
test ebx, ebx
mov dword [esi + 0xcc], eax
ja 0x1001d8ae
jb 0x1001d90b
cmp ebp, 1
jb 0x1001d90b
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jb 0x1001d8be
ja 0x1001d90b
mov eax, dword [esi + 0x18]
cmp eax, ebp
ja 0x1001d90b
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 8]
xor ecx, ecx
xor ebp, ebp
xor esi, esi
add edx, eax
push ecx
adc esi, ecx
sub edx, 1
sbb esi, ebp
push eax
push esi
push edx
call fcn.100e0450
mov esi, eax
mov eax, edi
add eax, dword [esp + 0x10]
mov ecx, ebp
push ebp
push edi
adc ecx, ebx
sub eax, 1
sbb ecx, ebp
mov dword [esp + 0x24], edx
push ecx
push eax
call fcn.100e0450
cmp eax, esi
jne 0x1001d90b
cmp edx, dword [esp + 0x1c]
jne 0x1001d90b
mov al, 1
jmp 0x1001d90d
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4