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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x100504f0]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd4]
push edi
mov edi, dword [esp + 0xd4]
push esi
mov dword [esp + 0x28], ecx
push 1
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0
call fcn.10030360
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [edx]
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x40], eax
mov ax, word [ecx + 0x58]
mov word [esp + 0x22], ax
test byte [esi], 8
jne 0x1003a552
movzx ecx, word [ebx + 0x1005022c]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
cmp ecx, 1
je 0x1003a219
mov eax, dword [edx]
cmp dword [eax + 0x44], 4
jne 0x1003a51d
test cx, cx
jne 0x1003a51d
mov eax, dword [ebx + 0x10050230]
cmp eax, 5
ja case.default.0x1003a224
jmp dword [eax*4 + 0x1003a578]
mov eax, dword [edx]
mov ecx, dword [eax + 0x17c]
jmp 0x1003a27d
mov eax, dword [edx]
mov ecx, dword [eax + 0x180]
jmp 0x1003a27d
mov eax, dword [edx]
cmp dword [eax + 0xdc], 0x778
jge 0x1003a263
mov ecx, dword [eax + 0x188]
jmp 0x1003a27d
mov eax, dword [edx]
cmp dword [eax + 0xdc], 0x778
jge 0x1003a24d
mov ecx, dword [eax + 0x184]
jmp 0x1003a27d
mov eax, dword [edx]
mov ecx, dword [eax + 0x18c]
jmp 0x1003a27d
mov eax, dword [edx]
mov ecx, dword [eax + 0x190]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x3c]
lea eax, [esp + 0x30]
push 0
push ecx
push esi
push dword [esp + 0x20]
mov ecx, dword [ecx + 8]
push eax
call fcn.10019460
test byte [esi], 8
jne 0x1003a511
lea ecx, [esp + 0x74]
call fcn.10032ab0
push dword [esp + 0x28]
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c], ebp
push esi
push dword [edi + 0x3c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.10033980
test byte [esi], 8
mov edx, eax
mov dword [esp + 0x28], edx
jne 0x1003a302
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x23], edx
test byte [esi], 8
jne 0x1003a302
push edx
push esi
push dword [edi + 0x3c]
lea ecx, [esp + 0x80]
call fcn.10033980
test byte [esi], 8
mov edx, eax
mov dword [esp + 0x28], eax
jne 0x1003a302
mov eax, dword [esp + 0x34]
mov dword [eax + 0x27], edx
lea ecx, [esp + 0x48]
call fcn.10040b70
lea ecx, [esp + 0x74]
call fcn.10032b60
test byte [esi], 8
jne 0x1003a511
push 0x778
call fcn.10044652
add esp, 4
test eax, eax
je 0x1003a35b
mov ecx, dword [esp + 0x24]
push esi
push dword [ecx]
mov ecx, eax
call fcn.1003a590
mov ebp, eax
test ebp, ebp
je 0x1003a35d
test byte [esi], 8
je 0x1003a374
mov ecx, ebp
call fcn.1003a730
push ebp
call fcn.1004476c
add esp, 4
xor ebp, ebp
jmp 0x1003a36b
xor ebp, ebp
push 1
push 0xfffffc0d
mov ecx, esi
call fcn.1001c1e0
test byte [esi], 8
jne 0x1003a511
inc dword [ebp + 0x4c]
mov ecx, ebp
push esi
push 6
push dword [esp + 0x1c]
push edi
call fcn.1003ed30
test byte [esi], 8
jne 0x1003a511
cmp dword [ebx + 0x10050238], 0
mov dword [esp + 0x1c], 0
jbe 0x1003a452
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea ebx, [ebx]
test byte [esi], 8
jne 0x1003a452
mov edx, dword [ebx + 0x1005023c]
add edx, ecx
mov cl, byte [esp + 0x70]
and cl, 0xf9
or cl, 9
push esi
movzx eax, byte [edx + 4]
mov byte [esp + 0x58], al
mov eax, dword [edx + 8]
mov dword [esp + 0x5c], eax
movzx eax, byte [edx + 0xc]
mov byte [esp + 0x60], al
movzx eax, word [esp + 0x44]
mov dword [esp + 0x64], eax
movzx eax, word [esp + 0x46]
mov dword [esp + 0x68], eax
movzx eax, word [esp + 0x26]
mov dword [esp + 0x6c], eax
mov byte [esp + 0x74], cl
and cl, 0xf
movzx eax, byte [edx + 0xd]
and byte [esp + 0x75], 0xf8
and al, 1
or al, 0xfc
mov dword [esp + 0x70], 0
shl al, 4
or al, cl
mov ecx, ebp
mov byte [esp + 0x74], al
lea eax, [esp + 0x58]
push eax
push dword [edx]
push edi
call fcn.1003ac90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add ecx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [ebx + 0x10050238]
jb 0x1003a3b0
cmp dword [ebx + 0x10050240], 0
mov dword [esp + 0x18], 0
jbe 0x1003a511
xor ecx, ecx
mov dword [esp + 0x1c], ecx
lea ecx, [ecx]
test byte [esi], 8
jne 0x1003a511
mov edx, dword [ebx + 0x10050244]
mov al, byte [esp + 0x13]
add edx, ecx
push 0
push esi
push 0x64
movzx ecx, byte [edx + 4]
mov edi, dword [edx + 8]
xor cl, al
mov ebx, dword [edx]
and cl, 1
xor al, cl
mov byte [esp + 0x1f], al
movzx ecx, byte [edx + 4]
xor cl, al
and cl, 2
xor al, cl
mov byte [esp + 0x1f], al
movzx ecx, byte [edx + 4]
xor cl, al
and cl, 4
xor al, cl
mov byte [esp + 0x1f], al
movzx ecx, byte [edx + 4]
xor cl, al
and cl, 8
xor al, cl
mov byte [esp + 0x1f], al
movzx ecx, byte [edx + 4]
xor cl, al
and cl, 0x10
xor al, cl
mov ecx, ebp
push edi
mov edi, dword [esp + 0x4c]
mov byte [esp + 0x23], al
lea eax, [esp + 0x23]
push eax
push ebx
push edi
call fcn.1003b130
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
inc eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp eax, dword [ebx + 0x10050240]
jb 0x1003a470
test ebp, ebp
je 0x1003a51d
push edi
mov ecx, ebp
call fcn.1003ef90
lea ecx, [esp + 0x30]
call fcn.1002f490
mov edx, dword [esp + 0x24]
add ebx, 0x20
mov dword [esp + 0x2c], ebx
cmp ebx, 0x140
jb 0x1003a1e5
test byte [esi], 8
jne 0x1003a552
mov ecx, dword [edi + 0xc]
push 0
push esi
call fcn.10030400
test byte [esi], 8
je 0x1003a55b
mov ecx, dword [edi + 0xc]
push esi
call fcn.10030280
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10044550
add esp, 0xc0
ret 8