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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4af720
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
lea edi, [ecx + 0x24]
xor al, al
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], edi
mov byte [esp + 0x17], al
mov byte [esp + 0x20], al
test edi, edi
je 0x41542c
mov eax, dword [edi]
test eax, eax
jne 0x415402
xor al, al
jmp 0x415424
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41541a
cmp eax, 0x80
je 0x41541a
xor al, al
jmp 0x415420
mov byte [edi + 4], 1
mov al, 1
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x17], al
mov byte [esp + 0x20], al
mov dword [esp + 0x80], 0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x4c], eax
cmp esi, eax
je 0x41545f
mov edi, eax
mov ecx, esi
call fcn.0040aa30
add esi, 0xf0
cmp esi, edi
jne 0x415446
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [esp + 0x58]
push eax
call fcn.00415bc0
mov byte [esp + 0x80], 1
xorps xmm0, xmm0
movdqa xmmword [esp + 0x34], xmm0
xor eax, eax
movdqa xmmword [esp + 0x24], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x80], 3
mov dword [esp + 0x40], eax
mov byte [esp + 0x80], 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x16], al
call fcn.00433c80
movzx ecx, byte [esp + 0x16]
test al, al
mov edx, 1
cmove ecx, edx
xor eax, eax
test cl, cl
sete al
xor cl, cl
mov byte [esp + 0x16], cl
lea eax, [eax*2 + 1]
cmp eax, 2
jne 0x415520
push ecx
push edx
push edx
push 0x40000000
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.0043fc00
test al, al
je 0x41551b
mov cl, 1
jmp 0x41554a
push ecx
push 2
jmp 0x415531
cmp eax, 1
jne 0x41552f
mov cl, dl
push ecx
mov byte [esp + 0x1a], cl
push eax
jmp 0x415531
push ecx
push eax
push 1
push 0x40000000
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.0043fc00
mov cl, byte [esp + 0x16]
test al, al
je 0x4155e3
test cl, cl
je 0x415568
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x415568
mov eax, dword [ecx]
lea edx, [esp + 0x58]
push edx
call dword [eax + 4]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4155c1
push 0
lea ecx, [esp + 0x54]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x5c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x415599
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4155c1
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4155c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0
cmovae eax, dword [esp + 0x28]
xor ecx, ecx
mov byte [esp + 0x16], 1
mov word [eax], cx
jmp 0x4155e8
mov byte [esp + 0x16], 0
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x24]
call fcn.0043fb60
mov byte [esp + 0x80], 0
cmp dword [esp + 0x6c], 8
jb 0x415614
push dword [esp + 0x58]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov dword [esp + 0x80], 0xffffffff
test edi, edi
je 0x41565b
cmp byte [esp + 0x17], al
je 0x41565b
mov eax, dword [edi]
test eax, eax
je 0x41564d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [edi + 4], 0
mov dword [esp + 0x1c], 0
jmp 0x41565f
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0048d894
mov esp, ebp
pop ebp
ret