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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
mov ebp, edx
push 0xc40
push 0
push edi
mov ebx, dword [ebp + 0x1c]
mov esi, ecx
mov dword [esp + 0x28], ebx
call fcn.100eae50
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esp + 0x7c]
xorps xmm0, xmm0
mov byte [edi + 0x20], cl
mov edx, 0x1011f3a4
mov ecx, ebp
mov dword [esp + 0x40], 0
push edi
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x34], xmm0
mov dword [edi], esi
mov dword [edi + 4], ebp
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
call fcn.10034bf0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
cmp byte [esp + 0x7c], al
je 0x1003ba5c
cmp byte [edi + 0x18], 2
jne 0x1003bad9
cmp byte [edi + 0x1a], 5
jb 0x1003bad9
mov ecx, dword [ebp + 8]
lea eax, [ecx + 1]
cmp eax, dword [ebp + 4]
jae 0x1003ba15
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003b9f2
push 2
lea edx, [esp + 0x18]
push edx
mov edx, ecx
mov ecx, ebp
call eax
cmp eax, 2
jne 0x1003ba15
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
jmp 0x1003b9fb
mov eax, dword [ebp]
xor edx, edx
add eax, ecx
je 0x1003ba07
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or edx, eax
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov dword [edi + 0x1c], edx
jmp 0x1003baa1
mov dword [edi + 0x1c], 0
mov ebx, 0x55
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1003ba50
mov edx, dword [esp + 0x40]
mov esi, dword [eax + 0x1c]
test edx, edx
je 0x1003ba41
cmp dword [eax + 0x14], 0
je 0x1003ba41
mov eax, dword [esi + 8]
mov ecx, esi
call eax
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x1003ba50
mov eax, dword [esi + 8]
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x58
ret 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x70], 0
test eax, eax
je 0x1003ba83
push 1
lea edx, [esp + 0x74]
push edx
mov edx, ecx
mov ecx, ebp
call eax
cmp eax, 1
jne 0x1003ba1c
mov al, byte [esp + 0x70]
jmp 0x1003ba8e
cmp ecx, dword [ebp + 4]
jae 0x1003ba1c
mov eax, dword [ebp]
mov al, byte [ecx + eax]
inc dword [ebp + 8]
cmp byte [edi + 0x18], 1
jne 0x1003bad9
cmp byte [edi + 0x1a], 4
jb 0x1003bad9
cmp al, 4
ja 0x1003bad9
movzx esi, byte [edi + 0x1a]
xor ebx, ebx
add esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003bae3
push ebx
push ebx
mov edx, esi
mov ecx, ebp
call eax
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0x55
test eax, eax
jne 0x1003baca
mov dword [ebp + 8], esi
test ebx, ebx
je 0x1003baef
cmp byte [esp + 0x78], 0
je 0x1003ba21
mov ebx, 2
jmp 0x1003ba21
cmp esi, dword [ebp + 4]
jbe 0x1003bac7
mov ebx, 0x55
jmp 0x1003baca
cmp byte [esp + 0x7c], 0
je 0x1003bbc4
xorps xmm0, xmm0
movups xmmword [edi + 0x4d8], xmm0
movups xmmword [edi + 0x4e8], xmm0
mov dword [edi + 0x4f8], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0x4ec], eax
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x4f0], eax
test eax, eax
js 0x1003ba1c
mov esi, dword [ebp + 8]
xor ebx, ebx
add esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003bbb8
push ebx
push ebx
mov edx, esi
mov ecx, ebp
call eax
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0x55
test eax, eax
jne 0x1003bb55
mov dword [ebp + 8], esi
test ebx, ebx
jne 0x1003ba21
push dword [esp + 0x7c]
lea ecx, [edi + 0x6c]
mov edx, ebp
push 1
call fcn.100388d0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
lea esi, [edi + 0x4d8]
cmp byte [esp + 0x78], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov dword [edi + 0x54c], eax
je 0x1003bcff
movzx edx, cx
mov dword [esp + 0x6c], edx
test ecx, ecx
jle 0x1003bc97
cmp edx, dword [edi + 0x30]
jb 0x1003bc97
mov ebx, 6
jmp 0x1003ba21
cmp esi, dword [ebp + 4]
jbe 0x1003bb52
mov ebx, 0x55
jmp 0x1003bb55
push 0
push 0
lea ecx, [edi + 0x24]
mov edx, ebp
call fcn.100388d0
mov ebx, eax
test ebx, ebx
je 0x1003bbed
cmp byte [esp + 0x78], 0
je 0x1003ba21
mov ebx, 2
jmp 0x1003ba21
mov eax, dword [edi + 0x30]
cmp eax, 1
jbe 0x1003bc0b
cmp dword [edi + 0x3c], eax
jae 0x1003bc0b
xor ebx, ebx
cmp byte [esp + 0x78], bl
sete bl
add ebx, 2
jmp 0x1003ba21
push 0
lea esi, [edi + 0x4d8]
mov edx, ebp
push 0
mov ecx, esi
call fcn.100388d0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
push eax
push 1
mov edx, ebp
lea ecx, [esp + 0x28]
call fcn.100388d0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
push eax
push 1
lea ecx, [edi + 0x6c]
mov edx, ebp
call fcn.100388d0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
lea eax, [edi + 0x558]
push eax
lea eax, [edi + 0x554]
push eax
lea edx, [edi + 0x550]
lea ecx, [esp + 0x28]
call fcn.10038db0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0x4e4]
jbe 0x1003bb7d
mov ebx, 3
jmp 0x1003ba21
mov eax, dword [edi + 0x30]
mov dword [edi + 0x10], eax
test ecx, ecx
js 0x1003ba21
push dword [esp + 0x74]
cmp byte [esp + 0x80], 0
lea ecx, [edi + 0x55c]
push edi
mov eax, 0x1000
mov ebx, 0x3000
cmovne eax, ebx
push eax
push dword [esp + 0x24]
push ebp
push edx
mov edx, esi
call fcn.1003b500
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
mov esi, dword [edi + 0x5cc]
add esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003bd13
push ebx
push ebx
mov edx, esi
mov ecx, ebp
call eax
neg eax
sbb ebx, ebx
and ebx, 0x55
jmp 0x1003bd1c
xor edx, edx
cmp dword [edi + 0x30], 1
mov dword [esp + 0x6c], edx
jbe 0x1003bc9d
lea ebx, [edx + 3]
jmp 0x1003ba21
cmp esi, dword [ebp + 4]
ja 0x1003ba1c
test ebx, ebx
jne 0x1003ba21
push dword [esp + 0x7c]
lea ecx, [edi + 0x4b4]
mov dword [ebp + 8], esi
push ebx
mov edx, ebp
call fcn.100388d0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
cmp dword [edi + 0x5e0], 0xffff
jne 0x1003bd60
cmp byte [esp + 0x7c], al
jne 0x1003bd60
mov dword [edi + 0x7e8], eax
jmp 0x1003bf33
push dword [edi + 0x610]
lea ecx, [edi + 0xc28]
mov edx, ebp
push dword [esp + 0x1c]
call fcn.10039d10
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
mov esi, dword [edi + 0x600]
add esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003bda3
push ebx
push ebx
mov edx, esi
mov ecx, ebp
call eax
neg eax
sbb ebx, ebx
and ebx, 0x55
jmp 0x1003bdac
cmp esi, dword [ebp + 4]
ja 0x1003ba1c
test ebx, ebx
jne 0x1003ba21
push dword [esp + 0x7c]
mov edx, ebp
mov dword [ebp + 8], esi
push ebx
lea ecx, [esp + 0x4c]
call fcn.100388d0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
mov esi, dword [esp + 0x50]
cmp esi, 0x100
ja 0x1003befc
mov dword [edi + 0x7e8], esi
test esi, esi
js 0x1003bef7
je 0x1003be52
cmp esi, 0x3241f6
jle 0x1003be01
lea ebx, [eax + 0xa]
jmp 0x1003befc
mov eax, dword [esp + 0x1c]
mov ecx, eax
imul edx, esi, 0x28c
mov eax, dword [eax + 4]
call eax
mov ecx, eax
mov ebx, 0x40
xor eax, eax
mov dword [esp + 0x70], ecx
test ecx, ecx
cmovne ebx, eax
mov eax, ecx
mov edx, ebx
je 0x1003be46
test esi, esi
jle 0x1003be46
imul eax, esi, 0x28c
push eax
push 0
push ecx
call fcn.100eae50
mov eax, dword [esp + 0x7c]
add esp, 0xc
jmp 0x1003be56
mov ebx, edx
test edx, edx
jne 0x1003befc
jmp 0x1003be56
xor eax, eax
xor ebx, ebx
lea ecx, [edi + 0x7ec]
mov dword [esp + 0x70], ecx
test esi, esi
je 0x1003be75
mov edx, ecx
mov dword [edx], eax
lea edx, [edx + 4]
add eax, 0x28c
sub esi, 1
jne 0x1003be66
mov eax, dword [esp + 0x50]
xor esi, esi
test eax, eax
je 0x1003beca
cmp byte [esp + 0x7c], 0
mov eax, 0x4000
mov edx, 0x1000
cmovne edx, eax
mov dword [esp + 0x1c], edx
push dword [esp + 0x74]
mov ecx, dword [ecx]
push edi
push edx
push dword [esp + 0x24]
lea edx, [esp + 0x54]
push ebp
push esi
call fcn.1003b500
mov ebx, eax
test ebx, ebx
jne 0x1003befc
mov ecx, dword [esp + 0x70]
inc esi
mov eax, dword [esp + 0x50]
add ecx, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
cmp esi, eax
jb 0x1003be95
cmp byte [esp + 0x7c], 0
je 0x1003bed6
cmp eax, 1
jbe 0x1003befc
mov eax, dword [edi + 0x604]
lea ecx, [edi + 0xbec]
add eax, dword [esp + 0x18]
mov edx, dword [edi + 0x4c0]
push eax
push ebp
call fcn.100392e0
mov ebx, eax
jmp 0x1003befc
mov ebx, 6
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1003bf2b
mov edx, dword [esp + 0x64]
mov esi, dword [eax + 0x1c]
test edx, edx
je 0x1003bf1c
cmp dword [eax + 0x14], 0
je 0x1003bf1c
mov eax, dword [esi + 8]
mov ecx, esi
call eax
mov edx, dword [esp + 0x60]
test edx, edx
je 0x1003bf2b
mov eax, dword [esi + 8]
mov ecx, esi
call eax
test ebx, ebx
jne 0x1003ba21
cmp dword [edi + 0x5cc], 0
jne 0x1003bf46
mov ebx, 3
jmp 0x1003ba21
mov eax, dword [edi + 0x4c0]
lea edx, [edi + 0x548]
push 0
push 0
lea ecx, [edi + 0x6c]
mov dword [edi + 0x14], eax
call fcn.10038db0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
cmp byte [esp + 0x7c], al
jne 0x1003bfed
mov edx, dword [edi + 0x14]
test edx, edx
je 0x1003bfed
cmp dword [edi + 0x5e0], 0xffff
je 0x1003bf8f
cmp byte [esp + 0x78], al
mov byte [esp + 0x78], 1
jne 0x1003bf94
mov byte [esp + 0x78], 0
push dword [esp + 0x78]
lea ecx, [edi + 0x49c]
push dword [edi + 0x5c4]
push dword [esp + 0x20]
push ebp
call fcn.10039610
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
cmp dword [edi + 0x5e0], 0xffff
jne 0x1003bfed
push dword [edi + 0x5c8]
lea ecx, [edi + 0x90]
push dword [esp + 0x1c]
lea edx, [edi + 0x49c]
push ebp
push dword [edi + 0x14]
call fcn.1003acf0
mov ebx, eax
test ebx, ebx
jne 0x1003ba21
mov edx, dword [esp + 0x6c]
mov ecx, edi
call fcn.10039240
mov dword [edi + 0x544], eax
jmp 0x1003ba21