Function at 0x407f30
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523729
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
xorps xmm0, xmm0
push 0x544828
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x40], eax
call fcn.004950a0
test al, al
je 0x40803a
push 0x10
call fcn.004d7fcd
mov esi, eax
add esp, 4
mov dword [ebp - 0x54], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push 0x544828
movups xmmword [esi], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x408033
lea eax, [esi + 0xc]
push eax
call ecx
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], esi
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x8007139f
push eax
push 0x53f55c
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.004071e0
mov eax, dword [ebp - 0x4c]
test eax, eax
jns 0x4080ac
mov edi, dword [ebp - 0x50]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x408078
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x408295
mov dword [ebp - 4], 3
cmp dword [esi + 4], 0
je 0x40809c
push dword [esi + 0xc]
mov ecx, dword [esi + 8]
call ecx
push 0x10
push esi
call fcn.004d8000
add esp, 8
jmp 0x408295
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x2c], xmm0
push 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 1
mov byte [ebp - 0x30], 0
call fcn.004073c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x408159
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4080fa
movzx eax, ax
or eax, 0x80070000
mov edi, dword [ebp - 0x50]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x408116
lea ecx, [ebp - 0x30]
cmp eax, ecx
je 0x408116
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x408125
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x408295
mov dword [ebp - 4], 4
cmp dword [esi + 4], 0
je 0x408149
push dword [esi + 0xc]
mov eax, dword [esi + 8]
call eax
push 0x10
push esi
call fcn.004d8000
add esp, 8
jmp 0x408295
push ecx
push edi
lea ecx, [ebp - 0x3c]
call fcn.00409410
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x4081c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40817c
movzx eax, ax
or eax, 0x80070000
mov edi, dword [ebp - 0x50]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x408198
lea ecx, [ebp - 0x30]
cmp eax, ecx
je 0x408198
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4081a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x408295
mov dword [ebp - 4], 5
jmp 0x40813b
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00407270
cmp eax, edi
je 0x40820c
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4081f4
lea ecx, [ebp - 0x30]
cmp eax, ecx
je 0x4081f4
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x40828d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40828d
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1c], 0
push eax
push 0x53f56c
push dword [ebp - 0x58]
lea ecx, [ebp - 0x1c]
call fcn.004071e0
mov eax, dword [ebp - 0x4c]
test eax, eax
jns 0x408236
mov edi, dword [ebp - 0x50]
mov dword [edi], eax
jmp 0x40825a
lea eax, [ebp - 0x4c]
push eax
push edi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x1c]
call fcn.00407320
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
test eax, eax
jns 0x408254
mov dword [edi], eax
jmp 0x40825a
mov dword [edi], 0
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40826b
push eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x408282
lea ecx, [ebp - 0x30]
cmp eax, ecx
je 0x408282
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x40828d
push eax
call esi
lea ecx, [ebp - 0x20]
call fcn.004094b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret