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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1005df39
push eax
mov dword fs:[0], esp
sub esp, 0x90
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
je 0x1003ba9b
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x60]
xor edi, edi
mov dword [esp + 0x50], esi
inc edi
push edi
call fcn.10006ab6
push 0x6059
push 0x1f99
push 0x145e
push 0x4b41
push ecx
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
push ebx
push 0x6cd4
lea eax, [esp + 0x80]
mov dword [esp + 0xc4], ebx
push eax
mov dword [esp + 0x38], 2
mov ecx, 0x5561
mov dword [esp + 0x34], 0xaa41a80d
push 0x5933
call fcn.100366bb
add esp, 0x28
mov dword [esp + 0x24], ebx
jmp 0x1003b605
mov eax, dword [esp + 0x24]
mov dword [esp + eax*4 + 0x7c], 0x8bd921b0
inc dword [esp + 0x24]
cmp dword [esp + 0x24], 3
jl 0x1003b5f5
mov dword [esp + 0x14], ebx
jmp 0x1003b7bd
mov dword [esp + 0xc], edi
mov dword [esp + 0x74], 0xfffffffa
mov dword [esp + 0x6c], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], 0xfffffff9
mov dword [esp + 0x5c], 0x78470ed9
mov dword [esp + 0x28], 0xfffffffa
mov dword [esp + 0xc], ebx
jmp 0x1003b76f
mov dword [esp + 0x1c], 7
mov dword [esp + 0x34], 0xfffffff6
mov dword [esp + 0x1c], ebx
jmp 0x1003b670
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x4c], edi
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], edi
jl 0x1003b664
inc dword [esp + 0x10]
jne 0x1003b6e4
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
cmp dword [ecx + edx*4], eax
mov eax, dword [esp + 0x34]
setge bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [esp + 0x44]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x60]
setle dl
xor ecx, ecx
cmp edx, 0x3e629bad
setge cl
sub ecx, dword [eax]
jne 0x1003b6e4
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov eax, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0xc]
cmp eax, 0xffff
mov eax, dword [esp + 0x60]
sbb ecx, ecx
xor ebx, ebx
neg ecx
cmp ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x4c]
setl bl
xor edx, edx
cmp ebx, eax
mov eax, dword [esp + 0x6c]
sete dl
xor ecx, ecx
cmp eax, edx
setle cl
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
inc dword [esp + 0xc]
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jle 0x1003b64e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
cmp dword [eax + ecx*4], ebx
je 0x1003b79a
push 0x46d0
xor dl, dl
mov ecx, 0x63ab
call fcn.10036630
pop ecx
jmp 0x1003b7b9
mov dword [esp + 0x28], ebx
jmp 0x1003b7b3
mov eax, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], eax
inc dword [esp + 0x28]
cmp dword [esp + 0x28], ebx
jle 0x1003b7a0
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jle 0x1003b615
or dword [esp + 0xa4], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.10006b13
movzx eax, word [esi]
lea edx, [esp + 0x23]
mov dword [esp + 0x54], eax
xor cl, cl
mov dword [esp + 0xc], 0x54320e32
push 0x5cc0
mov dword [esp + 0x14], 0xfffffff9
mov dword [esp + 0x38], 0xd38c
push 0x2c27
mov dword [esp + 0x40], 0xffffffff
mov byte [esp + 0x2b], bl
push ebx
call fcn.1003b55a
mov eax, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], ebx
jne 0x1003b856
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x34], 0xd8da8e97
je 0x1003b86c
mov eax, ebx
cmp dword [esp + 0xc], ebx
je 0x1003b86e
mov eax, edi
push ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x58]
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.10036da4
add esp, 0xc
call fcn.1003ae93
mov edi, dword [esp + 0x50]
mov esi, ebx
mov cl, byte [esi + edi]
mov dl, 0x58
call fcn.1003f5e0
mov byte [esi + edi], al
inc esi
cmp esi, 2
jb 0x1003b890
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0xd2eb2fc2
mov dword [esp + 0x78], 0xfffffffd
mov dword [esp + 0x40], 0x5008d6d
mov dword [esp + 0x30], 0x8ce324e8
mov dword [esp + 0x38], 0xfffffffc
cmp dword [esp + 0xc], ebx
jne 0x1003b949
mov eax, dword [esp + 0xc]
xor edx, edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp ecx, eax
mov eax, dword [esp + 0x18]
setle dl
xor esi, esi
inc esi
add eax, edx
mov edx, ebx
je 0x1003b903
mov edx, esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0xc]
sete cl
xor edx, edx
cmp ecx, eax
setg dl
imul edx, dword [esp + 0xc]
neg edx
sbb edx, edx
neg edx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0xc]
neg eax
sbb eax, eax
inc eax
cmp eax, dword [esp + 0x18]
jne 0x1003b93f
mov eax, dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jne 0x1003b94c
mov ecx, ebx
jmp 0x1003b94e
xor esi, esi
inc esi
mov ecx, esi
mov eax, dword [esp + 0x18]
add eax, ecx
je 0x1003b9a9
lea eax, [esp + 0x88]
mov dword [esp + 0x88], esi
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x74], 0xcbaa6f4e
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push 0x6687
push esi
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x50]
push 0x5b2f
push eax
lea ecx, [esp + 0x68]
call fcn.100366bb
add esp, 0x28
jmp 0x1003ba8e
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
jmp 0x1003b9ca
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x8c], 0x9ac04bb9
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x1003b9b7
mov dword [esp + 0xc], ebx
jmp 0x1003b9e3
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x48], ebx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1003b9d7
lea edx, [esp + 0x3c]
call fcn.100369a3
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x10], ebx
jne 0x1003ba10
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
xor edx, edx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x94], edi
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
mov eax, dword [esp + 0x30]
setne dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x48]
sete cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
setne dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x30]
setle cl
imul esi, ecx
xor ecx, ecx
cmp eax, edi
mov eax, dword [esp + 0x30]
setl cl
xor edx, edx
cmp ecx, esi
setle dl
xor ecx, ecx
cmp edx, eax
setge cl
xor eax, eax
cmp ecx, 0x1ee328db
setg al
mov dword [esp + 0x40], eax
mov ecx, dword [ebp + 0x10]
mov ax, word [esp + 0x54]
mov word [ecx], ax
jmp 0x1003baab
cmp byte [edx], 0
je 0x1003baab
sub esp, 0x18
call fcn.10037008
add esp, 0x18
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret