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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x473370
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x49274c]
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 0x41d59c
mov eax, dword [edi]
test eax, eax
jne 0x41d572
xor al, al
jmp 0x41d594
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41d58a
cmp eax, 0x80
je 0x41d58a
xor al, al
jmp 0x41d590
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 0x41d5cf
mov edi, eax
mov ecx, esi
call fcn.00419890
add esi, 0xf0
cmp esi, edi
jne 0x41d5b6
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.0041dd30
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.00411e80
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 0x41d690
push ecx
push edx
push edx
push 0x40000000
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.00440ba0
test al, al
je 0x41d68b
mov cl, 1
jmp 0x41d6ba
push ecx
push 2
jmp 0x41d6a1
cmp eax, 1
jne 0x41d69f
mov cl, dl
push ecx
mov byte [esp + 0x1a], cl
push eax
jmp 0x41d6a1
push ecx
push eax
push 1
push 0x40000000
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.00440ba0
mov cl, byte [esp + 0x16]
test al, al
je 0x41d753
test cl, cl
je 0x41d6d8
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x41d6d8
mov eax, dword [ecx]
lea edx, [esp + 0x58]
push edx
call dword [eax + 4]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41d731
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 0x41d709
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41d731
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41d731
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 0x41d758
mov byte [esp + 0x16], 0
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x24]
call fcn.00440b00
mov byte [esp + 0x80], 0
cmp dword [esp + 0x6c], 8
jb 0x41d784
push dword [esp + 0x58]
call fcn.0044fd7a
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 0x41d7cb
cmp byte [esp + 0x17], al
je 0x41d7cb
mov eax, dword [edi]
test eax, eax
je 0x41d7bd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [edi + 4], 0
mov dword [esp + 0x1c], 0
jmp 0x41d7cf
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.0044fd7f
mov esp, ebp
pop ebp
ret