Function at 0x100171cd
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 0x10017446
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 0x100171ff
cmp dword [esi], eax
jne 0x10017446
mov eax, dword [esi]
cmp eax, 6
ja 0x10017446
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 0x10017446
cmp edx, eax
jbe 0x10017446
xor eax, eax
cmp ecx, 0xa
sete al
cmp dword [edi + 0x14], eax
jne 0x10017446
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 0x10017446
cmp ebx, ebp
je 0x10017446
mov eax, dword [edi + 0x28]
cmp eax, 1
mov dword [esi + 0x2c], eax
jb 0x10017446
cmp eax, edx
ja 0x10017446
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 0x100172f8
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 0x10017446
push 1
pop edx
shl edx, cl
movzx eax, ax
cmp eax, edx
ja 0x10017446
xor ecx, ecx
push 1
pop edx
shl edx, cl
cmp edx, eax
je 0x100172f0
inc ecx
cmp ecx, 0x20
jb 0x100172de
or ecx, 0xffffffff
cmp ecx, ebp
jl 0x10017446
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 0x1001738d
mov eax, dword [edi + 0x96]
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.100c0fc0
cmp ebx, edx
jb 0x100173b8
ja 0x10017446
cmp ebp, eax
jae 0x10017446
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 0x100173e9
jb 0x10017446
cmp ebp, 1
jb 0x10017446
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jb 0x100173f9
ja 0x10017446
mov eax, dword [esi + 0x18]
cmp eax, ebp
ja 0x10017446
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.100c0e30
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.100c0e30
cmp eax, esi
jne 0x10017446
cmp edx, dword [esp + 0x1c]
jne 0x10017446
mov al, 1
jmp 0x10017448
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4