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

Disassembly:
push 0xffffffffffffffff
push 0x4f4d48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov dword [esp + 0x24], edx
mov esi, ecx
mov eax, dword [esp + 0x78]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
movdqu xmmword [esp + 0x44], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0xffffffff
push 0x80
push 3
push 1
push SysReAllocStringLen
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x78], 0
call fcn.00419d60
mov ecx, esi
mov byte [esp + 0x2b], al
call fcn.0041b300
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x4c], al
call fcn.0041a2c0
cmp byte [esp + 0x2b], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x49bc6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49be41
mov esi, dword [esp + 0x70]
mov eax, esi
mov edi, dword [esp + 0x74]
and eax, edi
cmp eax, 0xffffffff
jne 0x49bc9e
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x48]
call fcn.00419ec0
test al, al
jne 0x49bc96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x2c], 0xffffffff
push 0x80
push 2
push 1
push 0x40000000
push dword [esp + 0x34]
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 1
call fcn.00419d60
test al, al
jne 0x49bce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49be2a
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x64], 2
test eax, eax
jne 0x49bd03
mov dword [esp + 0x20], eax
mov esi, 0x8007000e
jmp 0x49be0f
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49bd29
mov esi, 0x8007000e
jmp 0x49be0f
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
test edi, edi
jb 0x49be0d
ja 0x49bd44
test esi, esi
je 0x49be0d
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, edi
lea edx, [esp + 0x3c]
add ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xc]
adc eax, dword [esp + 0x80]
mov dword [esp + 0x40], eax
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x49be0f
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
sub ecx, edi
sbb eax, dword [esp + 0x24]
test eax, eax
ja 0x49bd9c
jb 0x49bda2
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jae 0x49bda0
jmp 0x49bda2
mov eax, dword [esp + 0x1c]
mov ecx, eax
lea eax, [esp + 0x18]
push eax
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x50]
call fcn.0041a4d0
test al, al
je 0x49be7d
mov esi, dword [esp + 0x18]
test esi, esi
je 0x49be0d
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x28]
lea ecx, [esp + 0x38]
call fcn.0041a570
test al, al
je 0x49be7d
cmp esi, dword [esp + 0x18]
jne 0x49be76
mov eax, dword [esp + 0x24]
add edi, esi
adc eax, 0
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x74]
jb 0x49bd50
ja 0x49be0d
cmp edi, dword [esp + 0x70]
jb 0x49bd50
xor esi, esi
mov eax, dword [esp + 0x20]
mov byte [esp + 0x64], 1
test eax, eax
je 0x49be2a
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x49be41
push eax
call edi
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x49be55
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004df96c
add esp, 0x5c
ret 0x1c
mov esi, 0x80004005
jmp 0x49be0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49be0f