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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006392b
push eax
mov dword fs:[0], esp
sub esp, 0x60
cmp byte [ebp + 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x1003b11f
push 2
lea ecx, [esp + 0x3c]
call fcn.10001647
and dword [esp + 0x74], 0
lea eax, [esp + 0x38]
push 0
push 0x3898
xor ebx, ebx
mov dword [esp + 0x18], 0x5c184c50
push 0xa57
inc ebx
lea edx, [esp + 0x40]
push ebx
push eax
mov ecx, 0x2b2
call fcn.1003ae75
add esp, 0x14
mov dword [esp + 0x10], 0
jmp 0x1003af15
lea eax, [esp + 0xf]
mov byte [esp + 0xf], 0
push eax
sub esp, 0xc
call fcn.1003bde6
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ebx
jle 0x1003aeea
lea ecx, [esp + 0x38]
call fcn.100016a4
and dword [esp + 0x60], 0
xor eax, eax
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
push ecx
mov dword [esp + 0x78], ebx
call fcn.1003bbd3
pop ecx
push dword [ebp + 0x14]
lea ecx, [esp + 0x54]
call fcn.1000b487
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0xeba4d3ec
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], 0
jmp 0x1003b05d
mov dword [esp + 0x14], 0xa3df603f
lea ecx, [esp + 0x44]
push 4
call fcn.10001647
xor ecx, ecx
mov byte [esp + 0x74], 2
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 4
jge 0x1003afb1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xf6a08376
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1003af95
xor ecx, ecx
mov dword [esp + 0x14], ebx
jmp 0x1003b01e
mov dword [esp + 0x10], 2
mov dword [esp + 0x10], ecx
jmp 0x1003afd5
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x20], 0xffffffff
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ebx
jl 0x1003afc5
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jmp 0x1003b013
mov dword [esp + 0x1c], 6
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], ecx
jl 0x1003b00f
mov eax, dword [esp + 0x1c]
cmp dword [esp + eax*4 + 0x20], ecx
jne 0x1003b00f
dec dword [esp + 0x1c]
jns 0x1003afff
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffee
jl 0x1003afed
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xfffffff3
jl 0x1003afb7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.1003bc01
add esp, 0x1c
mov byte [esp + 0x74], bl
lea ecx, [esp + 0x44]
call fcn.100016a4
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x19
jle 0x1003af70
mov eax, dword [0x10081980]
test al, 1
jne 0x1003b097
or eax, ebx
mov dword [0x10081980], eax
push 0xba7f
mov byte [esp + 0x78], 3
call fcn.1003a0fd
mov word [0x10081998], ax
mov byte [esp + 0x78], bl
mov eax, dword [0x10081980]
pop ecx
test al, 2
jne 0x1003b0bd
or eax, 2
mov dword [0x10081980], eax
push 0xc127
mov byte [esp + 0x78], 4
call fcn.1003a0fd
pop ecx
mov word [0x1008197c], ax
mov byte [esp + 0x74], bl
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1003b0fd
call fcn.1003ad62
push 0x34
pop ecx
xor edx, edx
div ecx
push 0x41d0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], edx
push eax
push 0x10081998
lea eax, [esp + 0x5c]
mov ecx, 0x1008197c
push eax
push 0x2114
call fcn.1003b1d6
add esp, 0x14
dec esi
jne 0x1003b0c4
lea eax, [esp + 0x50]
cmp edi, eax
je 0x1003b111
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.1000b92d
push 0
push ebx
lea ecx, [esp + 0x58]
call fcn.1000baf7
jmp 0x1003b13e
mov dword [edx], 0
cmp dword [edx], 2
jge 0x1003b13e
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [edx]
cmp dword [edx], 2
jl 0x1003b130
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret