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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x505034]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
mov esi, ecx
mov ecx, 0x78
push edi
mov dword [esp + 0x28], esi
cmp dword [esi + 0x4c], 0
je 0x450e38
cmp byte [esi + 0x26], 0
jne 0x450e38
cmp byte [esi + 0x2a], 0
jne 0x450e38
mov edi, dword [ebp + 8]
test edi, edi
jne 0x450b47
mov eax, dword [esi + 0x40]
lea edi, [esp + 0x40]
xorps xmm0, xmm0
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x44]
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x4c], eax
cmp dword [edi + 0xc], 0
ja 0x450b5a
cmp dword [edi + 8], 0x8000
jbe 0x450df0
mov dl, byte [esi + 0x2e]
test dl, 2
je 0x450b7d
mov eax, 0xb7
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x50bae0]
mov ecx, dword [edi + 4]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esp + 0x14], 0
test ecx, ecx
ja 0x450bd7
jb 0x450ba0
cmp eax, dword [esp + 0x10]
ja 0x450bd7
add eax, dword [esp + 0x10]
not dword [esp + 0x10]
not dword [esp + 0x14]
adc ecx, 0
add eax, dword [edi + 8]
adc ecx, dword [edi + 0xc]
and eax, dword [esp + 0x10]
and ecx, dword [esp + 0x14]
add eax, 0x8000
adc ecx, 0
cmp ecx, dword [esi + 0x44]
jb 0x450bd7
ja 0x450bd1
cmp eax, dword [esi + 0x40]
jb 0x450bd7
or dl, 2
mov byte [esi + 0x2e], dl
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x450be8
mov ecx, 0xa0
jmp 0x450ce4
cmp dword [0x50ba80], 0
mov ecx, 0x78
je 0x450cdc
cmp byte [0x50bb00], 0
jne 0x450cdc
cmp byte [eax + 5], 0
jne 0x450cdc
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x450cdc
cdq
xorps xmm0, xmm0
mov dword [esp + 0xb8], eax
mov eax, dword [edi]
mov dword [esp + 0xc5], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc9], eax
mov eax, dword [edi + 8]
mov dword [esp + 0xcd], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc0], edx
push eax
push 0
push 0
push 0x19
lea eax, [esp + 0xcc]
mov byte [esp + 0xd4], 0
push eax
push 0xb2d601c0
push dword [0x50ba80]
mov dword [esp + 0xe1], 1
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x450cbd
xor ecx, ecx
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 1
movzx eax, byte [0x50bb00]
cmp ecx, 0x32
cmove eax, edx
mov byte [0x50bb00], al
test ecx, ecx
je 0x450e38
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x50]
xor esi, esi
add eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
adc esi, edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x2c], esi
mov esi, dword [edi]
mov dword [esp + 0x20], esi
mov esi, dword [edi + 4]
mov dword [esp + 0x30], esi
mov esi, dword [edi + 8]
add esi, dword [edi]
mov dword [esp + 0x14], esi
mov esi, dword [edi + 4]
adc edx, esi
cmp esi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, 0
ja 0x450ddc
jb 0x450d42
cmp dword [esp + 0x20], eax
jae 0x450ddc
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 0x3c]
mov edi, dword [esp + 0x20]
jb 0x450ddc
ja 0x450d63
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x14], esi
mov esi, dword [esp + 0x28]
jbe 0x450ddc
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 0x3c]
jb 0x450d80
ja 0x450d73
cmp edi, dword [esi + 0x38]
jbe 0x450d80
sub edi, dword [esi + 0x38]
sbb edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
jmp 0x450d8d
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edi, dword [esp + 0x18]
add edi, dword [esi + 0x4c]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x10], edx
ja 0x450db6
jb 0x450da2
cmp dword [esp + 0x14], eax
jae 0x450db6
sub eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
sbb edx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov edx, eax
jmp 0x450dc3
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x50]
sub eax, edx
mov dword [esp + 0x78], edi
sub eax, edi
mov edx, 1
add eax, dword [esi + 0x4c]
mov dword [esp + 0x7c], eax
jmp 0x450de0
mov eax, dword [esp + 0x7c]
test edx, edx
je 0x450e38
cmp edx, 1
jne 0x450e08
cmp eax, 0x8000
ja 0x450e08
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x50ba98]
mov ecx, 0x78
test esi, esi
je 0x450e38
push 0
lea eax, [esp + 0x7c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x450ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8