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

Disassembly:
sub esp, 0x8dc
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x8d8], eax
push ebx
mov ebx, dword [esp + 0x8e8]
mov eax, ecx
push ebp
mov ebp, dword [esp + 0x8f0]
lea ecx, [esp + 0xc4]
push esi
mov esi, dword [esp + 0x8ec]
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.10012b20
test byte [ebp], 8
jne 0x1003db86
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 0x1003dba2
cmp dword [ebp + 4], 0xfffff9bd
jne 0x1003dba2
mov ecx, ebp
call fcn.1001c490
jmp 0x1003e0dc
test al, 8
jne 0x1003e0dc
push edi
lea ecx, [esp + 0x304]
mov dword [esp + 0x1c], 1
call fcn.100370f0
mov eax, dword [ebx + 0x20]
mov ecx, 0x10053c48
mov dword [esp + 0x58], eax
call fcn.10039ce0
mov ecx, 0x4000
cmp eax, ecx
push ebp
cmovb eax, ecx
lea ecx, [esp + 0x308]
push eax
push 0
push dword [esi + 0xc]
call fcn.10032030
test byte [ebp], 8
jne 0x1003e088
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 + 0x1c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x40], eax
call fcn.10020b80
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 0x1003dc65
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x24]
cmp dword [eax + 0x44], 1
je 0x1003dc65
push ebp
lea eax, [esp + 0x40]
mov byte [esp + 0x17], 1
push eax
mov dword [esp + 0x50], edi
call fcn.10020d90
mov dword [esp + 0x48], 1
jmp 0x1003dc6a
mov byte [esp + 0x13], 0
test byte [esp + 0x1c], 8
mov dword [esp + 0x64], edi
jne 0x1003de66
mov esi, ebx
jmp 0x1003dc80
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x1c]
push edx
xor bl, bl
mov eax, dword [ecx]
call dword [eax + 0x30]
test byte [esp + 0x1c], 8
mov dword [esp + 0x68], eax
jne 0x1003de62
lea eax, [esp + 0x1c]
push eax
push 0x103
lea ecx, [esp + 0x30c]
call fcn.10031810
test byte [esp + 0x1c], 8
mov dword [esp + 0x30], eax
jne 0x1003de62
cmp eax, dword [esp + 0x31c]
je 0x1003de52
mov eax, dword [eax]
xor edi, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0
cmp dword [esp + 0x58], edi
jle 0x1003dd5c
mov ebp, dword [esp + 0x14]
mov edi, edi
test byte [esp + 0x1c], 8
jne 0x1003dd3c
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 + 0x1c]
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 + 0x24]
call eax
test al, al
je 0x1003dd32
or bl, 1
jmp 0x1003dd35
or bl, 2
inc edi
cmp edi, dword [esp + 0x58]
jl 0x1003dcf0
cmp dword [esp + 0x6c], 0xff
mov ebp, dword [esp + 0x5c]
jbe 0x1003dd58
push 0xff
lea ecx, [esp + 0x70]
call fcn.1002a2f0
mov esi, dword [esp + 0x14]
test byte [esp + 0x1c], 8
jne 0x1003dd7a
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esp + 0x64], eax
jmp 0x1003dd7e
mov eax, dword [esp + 0x64]
test byte [esp + 0x1c], 8
jne 0x1003de41
lea ecx, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.10028df0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push 0x103
add eax, 4
push eax
call fcn.10029680
mov edx, dword [esp + 0x30]
mov ax, word [esp + 0x6c]
mov ecx, dword [edx]
mov word [ecx + 2], ax
lea eax, [esp + 0x1c]
push eax
push 1
push edx
lea ecx, [esp + 0x310]
call fcn.10031790
test byte [esp + 0x1c], 8
jne 0x1003dde7
mov ecx, dword [eax]
movzx eax, word [ecx + 2]
mov byte [eax + ecx + 4], bl
mov al, byte [esi + 0x40]
test al, 8
je 0x1003de05
test bl, 1
je 0x1003de05
push 1
push 0xfffffbe3
lea ecx, [esp + 0x24]
call fcn.1001c550
jmp 0x1003de0e
test al, 2
je 0x1003de1a
test bl, 2
jne 0x1003de1a
lea ecx, [esp + 0x308]
call fcn.10032680
test byte [esp + 0x1c], 8
mov edi, dword [esp + 0x18]
jne 0x1003de62
mov ecx, dword [esp + 0xf0]
lea edx, [esp + 0x1c]
push edx
push 2
inc edi
mov eax, dword [ecx]
push 1
mov dword [esp + 0x24], edi
call dword [eax + 8]
jmp 0x1003de45
mov edi, dword [esp + 0x18]
test byte [esp + 0x1c], 8
je 0x1003dc80
jmp 0x1003de62
push 1
push 0xfffffc0d
lea ecx, [esp + 0x24]
call fcn.1001c550
mov ebx, dword [esp + 0x14]
test byte [esp + 0x1c], 1
jne 0x1003de77
cmp dword [esp + 0x20], 0xfffff9bd
je 0x1003de83
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.1001c300
test byte [ebp], 8
jne 0x1003e041
push ebp
lea ecx, [esp + 0x308]
call fcn.10031a80
test byte [ebp], 8
jne 0x1003e041
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x304]
cmp byte [esp + 0x13], 0
push ebp
cmovne eax, edi
mov dword [esp + 0x54], eax
call fcn.10031be0
mov esi, eax
cmp esi, dword [esp + 0x31c]
je 0x1003e02b
test byte [ebp], 8
jne 0x1003e02b
movzx eax, byte [ebx + 0x40]
lea ecx, [esp + 0x238]
and eax, 1
mov dword [esp + 0x30], eax
lea eax, [esp + 0xcc]
push ebx
push eax
call fcn.1000c8a0
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 0x1003e013
cmp esi, dword [esp + 0x31c]
je 0x1003e013
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 + 0x23c]
lea eax, [esp + 0x38]
push eax
call fcn.1000cf30
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 0x1003dfb6
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x60]
call fcn.1000d110
test eax, eax
jne 0x1003dfb6
cmp dword [esp + 0x30], 1
jne 0x1003dfd1
movzx eax, word [edi + 2]
test byte [eax + edi + 4], 1
jne 0x1003dfd1
push 0xfffff9bb
mov ecx, ebp
call fcn.1001c430
jmp 0x1003dfd1
push 1
mov ecx, ebx
call fcn.10023ea0
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xa4]
call fcn.100295a0
push 1
mov ecx, ebx
call fcn.10023e80
cmp byte [esp + 0x13], 0
je 0x1003dff9
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
test al, 0x7f
jne 0x1003dff9
push ebp
lea eax, [esp + 0x40]
push eax
call fcn.10020d90
push ebp
push esi
lea ecx, [esp + 0x30c]
call fcn.10031d50
test byte [ebp], 8
mov esi, eax
je 0x1003df33
lea ecx, [esp + 0x9c]
call fcn.10028dd0
lea ecx, [esp + 0x238]
call fcn.1000c930
test byte [ebp], 1
jne 0x1003e041
cmp dword [ebp + 4], 0xfffff9bd
jne 0x1003e041
mov ecx, ebp
call fcn.1001c490
lea ecx, [esp + 0x304]
call fcn.10031860
cmp byte [esp + 0x13], 0
je 0x1003e07f
test byte [ebp], 8
jne 0x1003e06c
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 3
mov dword [esp + 0x50], eax
jmp 0x1003e074
mov dword [esp + 0x48], 4
push ebp
lea eax, [esp + 0x40]
push eax
call fcn.10020d90
lea ecx, [esp + 0x6c]
call fcn.10028dd0
lea ecx, [esp + 0x304]
call fcn.10031860
lea esi, [esp + 0x8e8]
mov edi, 6
sub esi, 0xa0
mov ecx, esi
call fcn.10032fd0
dec edi
jns 0x1003e0a0
lea ecx, [esp + 0x460]
call fcn.10043a60
lea ecx, [esp + 0x308]
call fcn.10032480
test dword [esp + 0x1c], 0xfffffffe
pop edi
je 0x1003e0dc
lea ecx, [esp + 0x18]
call fcn.1001c3d0
lea ecx, [esp + 0xc8]
call fcn.10012d60
mov ecx, dword [esp + 0x8e4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10045580
add esp, 0x8dc
ret 0xc