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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4f8940
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
xorps xmm0, xmm0
movdqa xmmword [esp + 0x64], xmm0
mov dword [esp + 0x64], 0xffffffff
push 0x80
push 1
push 1
lea edi, [esi + 0x288]
mov dword [esp + 0x9c], 0
push 0x40000000
push dword [edi]
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c], edi
call fcn.00419d60
test al, al
jne 0x4c6b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov esi, eax
push edi
add ecx, 0x228
call fcn.004109c0
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x64]
cmp ecx, 0xffffffff
je 0x4c6b35
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4c6e43
mov eax, dword [esi + 0x298]
lea edi, [esi + 0x148]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x29c]
lea esi, [edi + 0x9c]
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x28]
push esi
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x7c], 0
push 4
push 0x1000
push 0x100000
push 0
mov byte [esp + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x7c], edi
setne al
test al, al
jne 0x4c6bed
mov byte [esp + 0x90], al
test edi, edi
je 0x4c6bc8
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
je 0x4c6be3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
jmp 0x4c6e43
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x24], 0
cmp dword [edx + 0x280], 0
jbe 0x4c6e0c
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
nop
xorps xmm0, xmm0
movdqa xmmword [esp + 0x54], xmm0
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x24]
lea edx, [edx + 0x270]
mov byte [esp + 0x90], 2
mov eax, dword [edx + 0xc]
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
push dword [eax + ecx*4]
lea ecx, [esp + 0x4c]
call fcn.004124b0
push 0x80
push 3
push 1
push SysReAllocStringLen
mov byte [esp + 0xa0], 3
lea ecx, [esp + 0x64]
push dword [esp + 0x58]
call fcn.00419d60
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x1f], al
call fcn.0041b300
push dword [esp + 0x48]
lea ecx, [esp + 0x58]
mov byte [esp + 0x5c], al
call fcn.0041a2c0
cmp byte [esp + 0x1f], 0
je 0x4c6e95
push esi
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x90], 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c6cdd
mov ecx, dword [esp + 0x20]
push eax
add ecx, 0x198
call fcn.00412850
mov eax, dword [esp + 0x2c]
jmp 0x4c6cf0
mov eax, dword [esp + 0x2c]
xor edx, edx
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x54], 0
mov word [ecx], dx
mov byte [eax + 0x5c], 0
mov byte [esp + 0x90], 3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x30]
push eax
push 0x100000
push edi
lea ecx, [esp + 0x60]
call fcn.0041a4d0
test al, al
je 0x4c6e95
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4c6db5
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
lea ecx, [esp + 0x70]
call fcn.0041a570
test al, al
je 0x4c6e87
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x3c], eax
jne 0x4c6e70
add dword [esp + 0x34], eax
push esi
adc dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x90], 3
push esi
cmp byte [eax], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x14], ecx
jne 0x4c6e63
cmp byte [eax + 1], 0
je 0x4c6cfd
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c]
call fcn.004c7fb0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4c6d03
mov esi, eax
jmp 0x4c6eb1
mov byte [esp + 0x90], 2
push dword [esp + 0x48]
call fcn.004df97b
mov byte [esp + 0x94], 1
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x4c6df3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov ecx, 0xffffffff
mov eax, dword [esp + 0x54]
cmovne eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [edx + 0x280]
jb 0x4c6c20
mov byte [esp + 0x90], 0
test edi, edi
je 0x4c6e26
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
je 0x4c6e41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 0x80004004
jmp 0x4c6eb1
push 0x51c350
lea eax, [esp + 0x40]
mov dword [esp + 0x40], str.File_write_error
push eax
call fcn.004ea58e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x38]
mov esi, eax
jmp 0x4c6ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x48]
push eax
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + 0x228]
call fcn.004109c0
mov byte [esp + 0x90], 2
push dword [esp + 0x48]
call fcn.004df97b
mov byte [esp + 0x94], 1
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x4c6edd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x90], 0
test edi, edi
je 0x4c6ef7
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
je 0x4c6b35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4c6e43