Function at 0x47ebb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x47ee68
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x47ee19
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x49dfa8]
mov eax, dword [eax]
call fcn.004572b4
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, edi
call fcn.0047ef2c
test al, al
je 0x47edee
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0x1c]
shl esi, 0x20
mov eax, dword [ebp - 0x2c]
or esi, dword [eax + 0x20]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004049a4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x47ec77
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, 0x47ee84
call fcn.004047f0
mov edx, dword [ebp - 0x34]
mov eax, dword [0x49df94]
mov eax, dword [eax]
call fcn.00458edc
xor edx, edx
push ebp
push 0x47edd1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0xfe00
mov eax, esi
call fcn.00458b48
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.0047f274
shl eax, 9
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.00402a68
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x47ed7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x168]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x47ed64
mov eax, dword [0x49dfa8]
mov eax, dword [eax]
call fcn.004572b4
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.00458b48
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.0047f274
mov dword [ebp - 0x1c], eax
cmp byte [edi + 0xa], 0
je 0x47ed15
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [0x49e1ac]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0047e3a4
jmp 0x47ed2b
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [0x49de34]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.00459aac
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x47ed54
mov eax, dword [0x49df94]
mov eax, dword [eax]
mov edx, 0x47eea4
call fcn.00458edc
sub esi, ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
test esi, esi
jne 0x47eccf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ed81
mov eax, dword [ebp - 0x20]
call fcn.00402a98
ret
lea eax, [ebp - 0x38]
mov ecx, ebx
mov edx, 0x47eee4
call fcn.004047f0
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 5]
mov eax, dword [0x49df94]
mov eax, dword [eax]
call fcn.00458d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ee40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ee6f
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404508
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404508
ret