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

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x54]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebp
mov edi, edi
mov ebx, dword [ebp*4 + 0x10087c9c]
lea eax, [ebx + 0xc]
xor esi, esi
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
jae 0x1003b396
mov al, byte [ebx]
test al, al
je 0x1003b278
movsx edx, al
mov eax, dword [esp + 0xa8]
push edx
push eax
call fcn.10007780
add esp, 8
test eax, eax
je 0x1003b267
mov ecx, dword [esp + 0xa8]
push 1
push eax
push ecx
call fcn.10009bb0
add esp, 0xc
test eax, eax
jne 0x1003b267
mov eax, dword [esp + 0x24]
cmp word [eax + 0x6e], 0
jle 0x1003b267
mov edx, dword [eax + 0x70]
mov ecx, eax
movsx eax, word [ecx + 0x6c]
xor esi, esi
or edi, 0xffffffff
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], esi
jle 0x1003b2ef
mov ebx, dword [ecx + 0x78]
mov dword [esp + 0x34], eax
movsx edx, word [ebx]
cmp edx, esi
mov dword [esp + 0x3c], edi
jle 0x1003b1ba
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1003b188
cmp eax, 2
je 0x1003b188
cmp eax, 3
je 0x1003b188
cmp esi, edx
mov eax, esi
jg 0x1003b1ba
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + esi*8 + 4]
lea esp, [esp]
test edi, edi
jl 0x1003b178
cmp dword [ecx], ebp
jge 0x1003b17c
mov ebp, dword [ecx]
mov edi, eax
add eax, 1
add ecx, 8
cmp eax, edx
jle 0x1003b170
jmp 0x1003b1ac
cmp esi, edx
mov eax, esi
jg 0x1003b1ba
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + esi*8 + 4]
test edi, edi
jl 0x1003b19e
cmp dword [ecx], ebp
jle 0x1003b1a2
mov ebp, dword [ecx]
mov edi, eax
add eax, 1
add ecx, 8
cmp eax, edx
jle 0x1003b196
cmp edi, dword [esp + 0x3c]
je 0x1003b1ba
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edx
add ebx, 2
sub dword [esp + 0x34], 1
lea esi, [edx + 1]
jne 0x1003b141
test edi, edi
jl 0x1003b2ef
mov ecx, edi
mov edx, edi
mov ebx, dword [esp + 0x30]
cmp ecx, ebx
jle 0x1003b1e4
sub ecx, 1
jmp 0x1003b1e8
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + ecx*8 + 4]
sub eax, ebp
add eax, 5
cmp eax, 0xa
ja 0x1003b200
cmp ecx, edi
jne 0x1003b1d7
mov edi, edi
cmp edx, dword [esp + 0x28]
jge 0x1003b20b
add edx, 1
jmp 0x1003b20d
mov edx, ebx
mov eax, dword [esi + edx*8 + 4]
sub eax, ebp
add eax, 5
cmp eax, 0xa
ja 0x1003b21f
cmp edx, edi
jne 0x1003b200
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x74]
mov cl, byte [eax + ecx]
and cl, 3
cmp cl, 1
jne 0x1003b2d6
mov dl, byte [eax + edx]
and dl, 3
cmp dl, cl
jne 0x1003b2d6
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x40], ebp
add eax, 1
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
add ebx, 1
cmp ebx, dword [esp + 0x38]
mov dword [esp + 0x2c], ebx
jb 0x1003b0c6
test esi, esi
jne 0x1003b284
test edi, edi
je 0x1003b396
lea ecx, [esp + 0x70]
mov ebx, edi
call fcn.1003a110
lea ecx, [esp + 0x40]
mov ebx, esi
call fcn.1003a110
mov edx, dword [esp + 0xa4]
mov eax, dword [edx + 0x288]
lea ecx, [eax*8]
sub ecx, eax
add eax, 1
test esi, esi
lea ecx, [edx + ecx*4 + 0x28c]
mov dword [edx + 0x288], eax
jne 0x1003b30e
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov eax, dword [esp + eax*4 + 0x70]
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
jmp 0x1003b338
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x70], ebp
add eax, 1
mov byte [esp + 0x13], 1
mov dword [esp + 0x18], eax
jmp 0x1003b257
cmp byte [esp + 0x13], 0
je 0x1003b248
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x70], ebp
add eax, 1
mov dword [esp + 0x18], eax
jmp 0x1003b257
mov eax, esi
cdq
sub eax, edx
sar eax, 1
test edi, edi
jne 0x1003b324
mov eax, dword [esp + eax*4 + 0x40]
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
jmp 0x1003b338
mov edx, dword [esp + eax*4 + 0x40]
mov dword [ecx], edx
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov eax, dword [esp + eax*4 + 0x70]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx]
cmp eax, esi
je 0x1003b36e
setg dl
test ebp, ebp
je 0x1003b356
cmp ebp, 2
je 0x1003b356
cmp ebp, 3
je 0x1003b356
xor edi, edi
jmp 0x1003b35b
mov edi, 1
movzx edx, dl
xor edx, edi
je 0x1003b36e
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ecx], eax
mov dword [ecx + 0xc], eax
test ebp, ebp
mov dword [ecx + 0x18], 0
je 0x1003b383
cmp ebp, 2
je 0x1003b383
cmp ebp, 3
jne 0x1003b396
cmp ebp, 3
mov dword [ecx + 0x18], 2
jne 0x1003b396
mov dword [ecx + 0x18], 6
add ebp, 1
cmp ebp, 6
mov dword [esp + 0x20], ebp
jl 0x1003b0a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret