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

Disassembly:
jmp 0x507950
sub esp, 0x64
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x74]
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x74]
push esi
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.004069a1
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [edx + 4]
cmp ecx, dword [ebx + 4]
jb 0x507c60
ja 0x50799b
cmp eax, dword [ebx]
jbe 0x507c60
mov al, byte [edx + 9]
mov byte [ebp + 8], al
cmp al, 4
je 0x507aba
cmp al, 8
je 0x507aba
call fcn.00415dfc
push 0
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24]
push 0
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], 0x16
push 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0xf
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x924694
mov dword [esp + 0x48], eax
call fcn.0040826f
mov al, byte [ebp + 8]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], al
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x48], str.invalid_address_size:__hhu
mov dword [esp + 0x44], 0x92532c
call fcn.0040c69e
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x24]
je 0x507a5e
lea ecx, [esp + 0x20]
call fcn.004067b2
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
push edi
call fcn.00408deb
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0040934a
mov edx, dword [esp + 0x6c]
cmp edx, 0x10
jb 0x507c82
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x507aab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x507aab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
jmp 0x507c82
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push 0
mov dword [ebp + 4], ecx
mov ecx, edx
mov dword [ebp], eax
movzx eax, byte [edx + 9]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push 0
push ebx
push eax
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
call fcn.0041562c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x50]
push 0
push eax
movzx eax, byte [ecx + 9]
push ebx
push eax
mov dword [esp + 0x54], edx
call fcn.0041562c
mov ecx, eax
mov dword [esp + 0x4c], edx
movzx eax, byte [ebp + 8]
cdq
shld edx, eax, 1
mov dword [esp + 0x48], ecx
add eax, eax
add eax, esi
adc edx, edi
cmp dword [ebx], eax
jne 0x507bf7
cmp dword [ebx + 4], edx
jne 0x507bf7
nop dword [eax + eax]
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
jne 0x507b54
or ecx, dword [esp + 0x4c]
je 0x507c3f
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
cmp eax, dword [ecx + 8]
je 0x507b78
movups xmm0, xmmword [esp + 0x40]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x50]
movq qword [eax + 0x10], xmm0
add dword [ecx + 4], 0x18
jmp 0x507b83
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0040ae57
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push 0
movzx eax, byte [ecx + 9]
push 0
push ebx
push eax
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
call fcn.0041562c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x50]
push 0
push eax
movzx eax, byte [ecx + 9]
push ebx
push eax
mov dword [esp + 0x54], edx
call fcn.0041562c
mov ecx, eax
mov dword [esp + 0x4c], edx
movzx eax, byte [ebp + 8]
cdq
shld edx, eax, 1
mov dword [esp + 0x48], ecx
add eax, eax
add eax, esi
adc edx, edi
cmp dword [ebx], eax
jne 0x507bf7
cmp dword [ebx + 4], edx
je 0x507b40
mov ecx, ebp
call fcn.004069a1
lea eax, [esp + 0x14]
push eax
push str.invalid_range_list_entry_at_offset_0x_llx
sub esp, 8
mov esi, esp
call fcn.00415dfc
mov dword [esi], 0x16
mov dword [esi + 4], eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.004123aa
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004087b5
add esp, 0x64
ret 0xc
mov esi, dword [esp + 0x1c]
mov eax, esi
mov dword [esi], 0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004087b5
add esp, 0x64
ret 0xc
push ebx
push str.invalid_range_list_offset_0x_llx
sub esp, 8
mov esi, esp
call fcn.00415dfc
push edi
mov dword [esi], 0x16
mov dword [esi + 4], eax
call fcn.004123aa
add esp, 0x14
mov ecx, dword [esp + 0x70]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x64
ret 0xc