Function at 0x41c7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471f18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x48d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
movzx eax, word [0x490c10]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041a000
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x41c834
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c81e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx ecx, word [0x490c10]
movzx edx, word [esi]
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0041a000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x41c891
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c875
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41c812
add esi, 4
push esi
push 0x47fc58
lea edi, [ebp - 0x14]
call fcn.004138f0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x490c44]
movzx edx, word [0x490c10]
push ecx
push edx
push str._c:_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [0x490c2c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x20], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00419df0
test eax, eax
jne 0x41c947
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c93b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
jmp 0x41c859
mov ecx, dword [0x490c48]
movzx edx, word [0x490c10]
push ecx
push edx
push str._c:_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [0x490c30]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x10]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x20], esp
mov edi, esp
call fcn.00401a40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00419df0
test eax, eax
jne 0x41c9cf
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c93b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
jmp 0x41c859
mov ecx, dword [0x490c5c]
movzx edx, word [0x490c10]
push ecx
push edx
push str._c:_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x41caa8
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push edx
push str.Ghost.exe__nousb__clone_modepdump_src__s__dst__s___sure__rb__crcignore__fro__z3__auto__afile_GHOSTERR.TXT__r_nrestart_r_n
lea edi, [ebp - 0x1c]
call fcn.004019a0
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax - 0xc]
add esp, 0xc
lea ebx, [edi + 1]
push ebx
call fcn.0041d281
add esp, 4
lea ecx, [ebp - 0x20]
mov esi, eax
push ecx
lea eax, [ebp - 0x1c]
call fcn.0041a280
mov eax, dword [eax]
push eax
push ebx
push esi
call fcn.0045d800
add esp, 0xc
lea eax, [ebp - 0x20]
call fcn.0041b0e0
push 0
lea edx, [ebp - 0x28]
push edx
push edi
mov edi, dword [ebp - 0x24]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x41cac5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454f3d
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.004020a0
lea ecx, [ebp - 0x10]
call fcn.004020a0
lea ecx, [ebp - 0x14]
call fcn.004020a0
lea ecx, [ebp - 0x18]
call fcn.004020a0
jmp 0x41c81e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454f3d
add esp, 4
cmp dword [ebp + 8], 2
jne 0x41cb3a
mov eax, dword [0x490c4c]
movzx ecx, word [0x490c10]
push eax
push ecx
push str._c:_s
lea edi, [ebp - 0x10]
call fcn.004019a0
mov eax, dword [0x490c34]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.00419df0
test eax, eax
je 0x41caa0
lea ecx, [ebp - 0x1c]
call fcn.004020a0
lea ecx, [ebp - 0x10]
call fcn.004020a0
lea ecx, [ebp - 0x14]
call fcn.004020a0
lea ecx, [ebp - 0x18]
call fcn.004020a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4