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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 0x49], 4
mov eax, dword [ebp + 0x24]
mov ebx, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
jne 0x1003fb00
mov eax, dword [edi + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x3c]
test eax, eax
je 0x1003fb3c
lea ebx, [ebx]
cmp eax, edi
je 0x1003fb1d
test ecx, ecx
je 0x1003fb26
cmp dword [eax + 0x3c], ecx
je 0x1003fb26
mov eax, dword [eax + 8]
test eax, eax
jne 0x1003fb10
jmp 0x1003fb3c
test eax, eax
je 0x1003fb3c
push edi
push ecx
call fcn.10037ea0
add esp, 8
test eax, eax
jne 0x1003fcdf
cmp dword [edi + 0x10], 0
mov esi, dword [ebp + 0x10]
jne 0x1003fb9e
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x1003fb6e
mov cl, 0x10
test byte [eax + 0x48], cl
je 0x1003fb67
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp + 0xc]
jne 0x1003fb67
cmp dword [eax + 0x1c], esi
jne 0x1003fb67
mov byte [eax + 0x49], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x1003fb51
test byte [edi + 0x48], 2
je 0x1003fb9e
test esi, esi
jl 0x1003fb9e
jg 0x1003fb80
cmp dword [ebp + 0xc], 0
jbe 0x1003fb9e
mov eax, dword [ebp + 0xc]
sub eax, 1
mov ecx, esi
sbb ecx, 0
cmp dword [edi + 0x18], eax
jne 0x1003fb9e
cmp dword [edi + 0x1c], ecx
jne 0x1003fb9e
mov dword [ebp - 8], 0xffffffff
jmp 0x1003fbc6
cmp dword [ebp + 0x24], 0
jne 0x1003fbc6
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push edx
mov edx, dword [ebp + 8]
push esi
push eax
mov ebx, edi
call fcn.10037f40
add esp, 0x10
test eax, eax
jne 0x1003fcdf
movsx ecx, word [edi + 0x4c]
mov ebx, dword [edi + ecx*4 + 0x78]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
mov dword [ebp - 0x14], eax
push eax
mov eax, ebx
call fcn.1003d5d0
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003fcdf
movsx eax, word [edi + 0x4c]
movzx esi, word [edi + eax*2 + 0x4e]
mov ecx, dword [ebp - 8]
lea eax, [edi + eax*2 + 0x4e]
mov dword [ebp - 0xc], esi
test ecx, ecx
jne 0x1003fc88
mov eax, dword [ebx + 0x44]
call fcn.100342e0
test eax, eax
jne 0x1003fcdf
mov ecx, dword [ebx + 0x40]
movzx eax, byte [ecx + esi*2]
movzx edx, byte [ecx + esi*2 + 1]
lea ecx, [ecx + esi*2]
movzx ecx, word [ebx + 0x14]
shl eax, 8
or eax, edx
and eax, ecx
add eax, dword [ebx + 0x38]
cmp byte [ebx + 5], 0
jne 0x1003fc57
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
lea edx, [ebp + 0x24]
push edx
mov ecx, ebx
call fcn.1003d430
movzx ecx, word [ebp + 0x24]
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push esi
mov esi, ebx
call fcn.1003d930
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x1003fcdf
mov esi, dword [ebp - 0xc]
jmp 0x1003fc99
jns 0x1003fc99
cmp word [ebx + 0x12], 0
jbe 0x1003fc99
inc word [eax]
movzx edx, word [eax]
mov esi, edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
push esi
xor eax, eax
mov ecx, ebx
call fcn.1003da70
xor eax, eax
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x1003fcdf
cmp byte [ebx + 1], al
je 0x1003fcdf
and byte [edi + 0x48], 0xfd
call fcn.1003f960
movsx ecx, word [edi + 0x4c]
mov edx, dword [edi + ecx*4 + 0x78]
mov byte [edx + 1], 0
mov byte [edi + 0x49], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret