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

Disassembly:
sub esp, 0x888
mov eax, dword [0x100504f0]
xor eax, esp
mov dword [esp + 0x884], eax
push ebx
mov ebx, dword [esp + 0x894]
mov eax, ecx
push ebp
mov ebp, dword [esp + 0x89c]
lea ecx, [esp + 0xc4]
push esi
mov esi, dword [esp + 0x898]
push 0
push ebp
push 0
push 0
push eax
push esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x70], ebp
call fcn.10012e90
test byte [ebp], 8
jne 0x1003ceb6
mov ecx, dword [esp + 0xec]
push ebp
push 0
push 1
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp]
test al, 1
jne 0x1003ced2
cmp dword [ebp + 4], 0xfffff9bd
jne 0x1003ced2
mov ecx, ebp
call fcn.1001c120
jmp 0x1003d40c
test al, 8
jne 0x1003d40c
push edi
lea ecx, [esp + 0x2e8]
mov dword [esp + 0x18], 1
call fcn.10036610
mov eax, dword [ebx + 0x20]
mov ecx, 0x10051c08
mov dword [esp + 0x58], eax
call fcn.10039170
mov ecx, 0x4000
cmp eax, ecx
push ebp
cmovb eax, ecx
lea ecx, [esp + 0x2ec]
push eax
push 0
push dword [esi + 0xc]
call fcn.10031590
test byte [ebp], 8
jne 0x1003d3b5
lea eax, [esp + 0x7c]
mov dword [esp + 0x78], 0x20
xor edi, edi
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x40], eax
call fcn.10020880
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
test eax, eax
je 0x1003cf95
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x24]
cmp dword [eax + 0x44], 1
je 0x1003cf95
push ebp
lea eax, [esp + 0x40]
mov byte [esp + 0x17], 1
push eax
mov dword [esp + 0x50], edi
call fcn.1005ee3b
mov dword [esp + 0x48], 1
jmp 0x1003cf9a
mov byte [esp + 0x13], 0
test byte [esp + 0x18], 8
mov dword [esp + 0x64], edi
jne 0x1003d18c
mov esi, ebx
jmp 0x1003cfb0
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x18]
push edx
xor bl, bl
mov eax, dword [ecx]
call dword [eax + 0x30]
test byte [esp + 0x18], 8
mov dword [esp + 0x68], eax
jne 0x1003d188
lea eax, [esp + 0x18]
push eax
push 0x103
lea ecx, [esp + 0x2f0]
call fcn.10030d80
test byte [esp + 0x18], 8
mov dword [esp + 0x30], eax
jne 0x1003d188
cmp eax, dword [esp + 0x300]
je 0x1003d178
mov eax, dword [eax]
xor edi, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0
cmp dword [esp + 0x58], edi
jle 0x1003d08c
mov ebp, dword [esp + 0x14]
mov edi, edi
test byte [esp + 0x18], 8
jne 0x1003d06c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + ecx*4 + 0x178]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x6c]
xor eax, eax
test dl, dl
mov esi, dword [ecx]
sete al
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [esi + 0x20]
call eax
test al, al
je 0x1003d062
or bl, 1
jmp 0x1003d065
or bl, 2
inc edi
cmp edi, dword [esp + 0x58]
jl 0x1003d020
cmp dword [esp + 0x6c], 0xff
mov ebp, dword [esp + 0x5c]
jbe 0x1003d088
push 0xff
lea ecx, [esp + 0x70]
call fcn.10029c80
mov esi, dword [esp + 0x14]
test byte [esp + 0x18], 8
jne 0x1003d0aa
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esp + 0x64], eax
jmp 0x1003d0ae
mov eax, dword [esp + 0x64]
test byte [esp + 0x18], 8
jne 0x1003d0c4
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.10028910
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push 0x103
add eax, 4
push eax
call fcn.100291a0
mov edx, dword [esp + 0x30]
mov ax, word [esp + 0x6c]
mov ecx, dword [edx]
mov word [ecx + 2], ax
lea eax, [esp + 0x18]
push eax
push 1
push edx
lea ecx, [esp + 0x2f4]
call fcn.10030d00
test byte [esp + 0x18], 8
jne 0x1003d113
mov ecx, dword [eax]
movzx eax, word [ecx + 2]
mov byte [eax + ecx + 4], bl
mov al, byte [esi + 0x40]
test al, 8
je 0x1003d131
test bl, 1
je 0x1003d131
push 1
push 0xfffffbe3
lea ecx, [esp + 0x20]
call fcn.1001c1e0
jmp 0x1003d13a
test al, 2
je 0x1003d146
test bl, 2
jne 0x1003d146
lea ecx, [esp + 0x2ec]
call fcn.10031bd0
test byte [esp + 0x18], 8
mov edi, dword [esp + 0x2c]
jne 0x1003d188
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x18]
push edx
push 2
inc edi
mov eax, dword [ecx]
push 1
mov dword [esp + 0x38], edi
call dword [eax + 8]
test byte [esp + 0x18], 8
je 0x1003cfb0
jmp 0x1003d188
push 1
push 0xfffffc0d
lea ecx, [esp + 0x20]
call fcn.1001c1e0
mov ebx, dword [esp + 0x14]
test byte [esp + 0x18], 1
jne 0x1003d19d
cmp dword [esp + 0x1c], 0xfffff9bd
je 0x1003d1a9
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.1001bf90
test byte [ebp], 8
jne 0x1003d36e
push ebp
lea ecx, [esp + 0x2ec]
call fcn.10030ff0
test byte [ebp], 8
jne 0x1003d36e
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x2e8]
cmp byte [esp + 0x13], 0
push ebp
cmovne eax, edi
mov dword [esp + 0x54], eax
call fcn.10031140
mov esi, eax
cmp esi, dword [esp + 0x300]
je 0x1003d358
test byte [ebp], 8
jne 0x1003d358
movzx eax, byte [ebx + 0x40]
lea ecx, [esp + 0x224]
and eax, 1
mov dword [esp + 0x30], eax
lea eax, [esp + 0xcc]
push ebx
push eax
call fcn.1000c460
test byte [ebp], 8
lea eax, [esp + 0xac]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0x20
jne 0x1003d340
lea esp, [esp]
cmp esi, dword [esp + 0x300]
je 0x1003d340
mov edi, dword [esi]
push ebp
movzx ecx, word [edi + 2]
lea eax, [edi + 4]
mov dword [esp + 0x3c], eax
mov eax, ecx
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x228]
lea eax, [esp + 0x38]
push eax
call fcn.1000caf0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffffc
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x9c]
jne 0x1003d2e3
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x60]
call fcn.1000ccd0
test eax, eax
jne 0x1003d2e3
cmp dword [esp + 0x30], 1
jne 0x1003d2fe
movzx eax, word [edi + 2]
test byte [eax + edi + 4], 1
jne 0x1003d2fe
push 0xfffff9bb
mov ecx, ebp
call fcn.1001c0c0
jmp 0x1003d2fe
push 1
mov ecx, ebx
call fcn.10023b10
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xa4]
call fcn.100290c0
push 1
mov ecx, ebx
call fcn.10023af0
cmp byte [esp + 0x13], 0
je 0x1003d326
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
test al, 0x7f
jne 0x1003d326
push ebp
lea eax, [esp + 0x40]
push eax
call fcn.10020a60
push ebp
push esi
lea ecx, [esp + 0x2f0]
call fcn.100312b0
test byte [ebp], 8
mov esi, eax
je 0x1003d260
lea ecx, [esp + 0x9c]
call fcn.100288f0
lea ecx, [esp + 0x224]
call fcn.1000c4f0
test byte [ebp], 1
jne 0x1003d36e
cmp dword [ebp + 4], 0xfffff9bd
jne 0x1003d36e
mov ecx, ebp
call fcn.1001c120
lea ecx, [esp + 0x2e8]
call fcn.10030dd0
cmp byte [esp + 0x13], 0
je 0x1003d3ac
test byte [ebp], 8
jne 0x1003d399
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 3
mov dword [esp + 0x50], eax
jmp 0x1003d3a1
mov dword [esp + 0x48], 4
push ebp
lea eax, [esp + 0x40]
push eax
call fcn.10020a60
lea ecx, [esp + 0x6c]
call fcn.100288f0
lea ecx, [esp + 0x2e8]
call fcn.10030dd0
lea esi, [esp + 0x894]
mov edi, 6
lea ecx, [ecx]
sub esi, 0x98
mov ecx, esi
call fcn.10032520
dec edi
jns 0x1003d3d0
lea ecx, [esp + 0x444]
call fcn.10042c00
lea ecx, [esp + 0x2ec]
call fcn.100319d0
test dword [esp + 0x18], 0xfffffffe
pop edi
je 0x1003d40c
lea ecx, [esp + 0x14]
call fcn.1001c060
lea ecx, [esp + 0xc8]
call fcn.100130d0
mov ecx, dword [esp + 0x890]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10044550
add esp, 0x888
ret 0xc