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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x50]
push ebx
mov ebx, ecx
push ebp
mov ebp, edx
mov dword [esp + 0x18], ebp
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x48]
sub eax, 0
je 0x1003b433
sub eax, 2
je 0x1003b3d8
sub eax, 1
jne 0x1003b49a
cmp dword [ebp + 0x20], eax
je 0x1003b384
mov dword [esp + 0x60], 0x10039b70
jmp 0x1003b45f
cmp dword [ebp + 0x24], 0
je 0x1003b49a
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1003b3be
sub eax, 1
je 0x1003b3b1
sub eax, 1
jne 0x1003b49a
mov dword [esp + 0x60], 0x1003a360
jmp 0x1003b45f
mov dword [esp + 0x60], 0x10039f90
jmp 0x1003b45f
cmp dword [ebp + 0x10], 2
mov eax, 0x1003aeb0
mov ecx, 0x1003a740
cmove eax, ecx
mov dword [esp + 0x60], eax
jmp 0x1003b45f
cmp dword [ebp + 0x20], 0
je 0x1003b3e8
mov dword [esp + 0x60], 0x10039120
jmp 0x1003b45f
cmp dword [ebp + 0x24], 0
je 0x1003b49a
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1003b41c
sub eax, 1
je 0x1003b412
sub eax, 1
jne 0x1003b49a
mov dword [esp + 0x60], 0x100394e0
jmp 0x1003b45f
mov dword [esp + 0x60], 0x10039300
jmp 0x1003b45f
cmp dword [ebp + 0x10], 2
mov eax, 0x10039960
mov ecx, 0x100396b0
cmove eax, ecx
mov dword [esp + 0x60], eax
jmp 0x1003b45f
cmp dword [ebp + 0x20], 0
je 0x1003b457
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003b4a4
cmp eax, 3
jne 0x1003b49a
mov eax, dword [ebp + 0x34]
sub eax, 1
je 0x1003b4a4
sub eax, 1
je 0x1003b490
sub eax, 2
jne 0x1003b49a
mov dword [esp + 0x60], 0x100390c0
test ebx, ebx
je 0x1003b64c
mov ecx, ebx
mov eax, ebp
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003b4ae
test dl, dl
je 0x1003b48c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003b4ae
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003b470
xor eax, eax
jmp 0x1003b4b3
mov dword [esp + 0x60], 0x10039060
jmp 0x1003b45f
push str.bad_filter_number
jmp 0x1003b651
mov dword [esp + 0x60], 0x10039000
jmp 0x1003b45f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1003b64c
mov edx, ebp
mov ecx, ebx
call fcn.10051c80
call dword [sym.imp.python310.dll_PyEval_SaveThread]
mov ebp, dword [esp + 0x50]
xor edx, edx
mov ecx, dword [esp + 0x54]
test edi, edi
mov dword [esp + 0x2c], eax
cmovns edx, edi
xor edi, edi
test esi, esi
mov dword [esp + 0x18], edx
cmovns edi, esi
cmp ebp, dword [ebx + 0x14]
mov dword [esp + 0x1c], edi
cmovg ebp, dword [ebx + 0x14]
cmp ecx, dword [ebx + 0x18]
mov dword [esp + 0x50], ebp
cmovg ecx, dword [ebx + 0x18]
mov dword [esp + 0x54], ecx
cmp edi, ecx
jge 0x1003b5cf
xor ecx, ecx
sub ebp, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov esi, dword [ebx + 0x34]
imul esi, dword [esp + 0x18]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x28], ebp
add esi, dword [eax + edi*4]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x50]
jge 0x1003b5b1
xor edi, edi
cmp dword [esp + 0x64], edi
je 0x1003b5e6
push edx
push ecx
push edi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
call dword [esp + 0x6c]
add esp, 0x14
test eax, eax
je 0x1003b58a
movsd xmm0, qword [esp + 0x30]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
push dword [esp + 0x30]
push esi
call dword [esp + 0x78]
add esp, 0x18
test eax, eax
jne 0x1003b598
push dword [ebx + 0x34]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add esi, dword [ebx + 0x34]
inc edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
sub ebp, 1
jne 0x1003b548
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x50]
sub ebp, eax
mov edx, dword [esp + 0x5c]
inc edi
inc ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ecx
cmp edi, dword [esp + 0x54]
jl 0x1003b520
push dword [esp + 0x2c]
call dword [sym.imp.python310.dll_PyEval_RestoreThread]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x60]
nop
push edx
push ecx
push edi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
call dword [esp + 0x6c]
add esp, 0x14
test eax, eax
je 0x1003b62c
movsd xmm0, qword [esp + 0x30]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
push dword [esp + 0x30]
push esi
call ebp
add esp, 0x18
add esi, dword [ebx + 0x34]
inc edi
sub dword [esp + 0x24], 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
jne 0x1003b5f0
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
jmp 0x1003b5b7
push str.image_has_wrong_mode
mov eax, dword [sym.imp.python310.dll_PyExc_ValueError]
push dword [eax]
call dword [sym.imp.python310.dll_PyErr_SetString]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret