Function at 0x1000caf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1003200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x1000cd97
xor ecx, ecx
xor eax, eax
cmp dword [eax + 0x100bf318], ebx
jne 0x1000cb29
cmp dword [eax + 0x100bf314], esi
je 0x1000cbb0
add eax, 0xc
inc ecx
cmp eax, 0x3c
jb 0x1000cb15
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000cd97
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x114], eax
cmp dword [eax], 0x4550
jne 0x1000cd97
mov eax, dword [eax + 0x78]
xor edx, edx
add eax, esi
mov dword [ebp - 0x11c], edx
push edi
xor edi, edi
mov dword [ebp - 0x10c], eax
mov ecx, dword [eax + 0x20]
add ecx, esi
mov dword [ebp - 0x110], ecx
xor ecx, ecx
cmp dword [eax + 0x18], ecx
jbe 0x1000cd4c
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + edi*4]
add ecx, esi
call fcn.10004b70
mov dword [ebp - 0x120], eax
cmp eax, ebx
je 0x1000cbca
mov eax, dword [ebp - 0x10c]
inc edi
cmp edi, dword [eax + 0x18]
jb 0x1000cb83
xor edx, edx
jmp 0x1000cd46
lea eax, [ecx + ecx*2]
mov eax, dword [eax*4 + 0x100bf31c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x114]
lea edx, [esi + ecx]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 0x78]
cmp ecx, edx
mov dword [ebp - 0x114], edx
lea edx, [esi + ecx]
jbe 0x1000cd46
mov eax, dword [eax + 0x7c]
add eax, dword [ebp - 0x114]
cmp ecx, eax
jae 0x1000cd46
mov eax, dword [ebp - 0x110]
push 0x103
push edx
push 0x104
mov edi, dword [eax + edi*4]
lea eax, [ebp - 0x108]
add edi, esi
push eax
mov dword [ebp - 0x10c], edi
call fcn.10015d9d
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
lea eax, [ebp - 0x108]
push 0x1002fd2c
push eax
call fcn.10015ca4
add esp, 0x1c
test eax, eax
je 0x1000ccc7
cmp dword [ebp - 0x110], 0
je 0x1000ccc7
mov ecx, eax
call fcn.1000c6c0
mov edi, eax
test edi, edi
je 0x1000ccc1
cmp edi, esi
je 0x1000ccc1
mov edx, dword [ebp - 0x110]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x114], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cc93
sub ecx, dword [ebp - 0x114]
dec ecx
call fcn.10004a60
not eax
mov ecx, edi
mov edx, eax
call fcn.1000caf0
mov edx, eax
mov dword [ebp - 0x11c], edx
test edx, edx
jne 0x1000cd46
mov edi, dword [ebp - 0x10c]
cmp dword [0x100bf30c], 0
jne 0x1000ccec
mov edx, 0xc0d5b5d8
mov ecx, 0x84c05e40
call fcn.1000cdb0
mov dword [0x100bf30c], eax
test eax, eax
jne 0x1000ccec
xor edx, edx
jmp 0x1000cd40
push 0x104
push edi
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], edi
call fcn.100151d5
movzx eax, ax
add esp, 8
mov word [ebp - 0x118], ax
inc eax
mov word [ebp - 0x116], ax
lea eax, [ebp - 0x10c]
push eax
push 0
lea eax, [ebp - 0x118]
push eax
push esi
call dword [0x100bf30c]
mov edx, dword [ebp - 0x10c]
xor eax, eax
cmp edx, esi
cmove edx, eax
mov dword [ebp - 0x11c], edx
mov ecx, dword [ebp - 0x120]
pop edi
cmp ebx, ecx
jne 0x1000cd97
movzx eax, word [0x100bf310]
lea ecx, [eax + eax*2]
inc eax
mov dword [ecx*4 + 0x100bf314], esi
mov dword [ecx*4 + 0x100bf318], ebx
mov dword [ecx*4 + 0x100bf31c], edx
xor edx, edx
mov ecx, 5
div ecx
mov eax, dword [ebp - 0x11c]
pop esi
mov word [0x100bf310], dx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f090
mov esp, ebp
pop ebp
ret