Function at 0x41b3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a8758
push 0x47eeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4aab30]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x41b6c2
cmp dword [esi + 0x7f], ebx
je 0x41b6c2
push esi
call fcn.0041c890
add esp, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40010000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x41b6b9
mov ecx, dword [esi]
mov eax, ecx
shl eax, 4
add eax, ecx
add eax, 0x12
mov dword [esi + 0x1a], eax
mov dword [esi + 0x1e], ebx
mov edi, eax
mov dword [ebp - 0x58], edi
mov ecx, ebx
mov dword [ebp - 0x54], ecx
mov edx, edi
push edx
call fcn.0047a780
add esp, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
xor eax, eax
cmp ebx, eax
jne 0x41b484
mov dword [ebp - 0x20], 8
jmp 0x41b6c2
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
push edi
push eax
push ebx
call fcn.0047d730
add esp, 0xc
mov eax, dword [esi]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
push 0
lea edx, [ebp - 0x24]
push edx
push edi
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b6b9
xor eax, eax
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov edx, dword [esi + 8]
mov dword [ebp - 0x48], edx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x44], edx
nop
cmp ecx, dword [esi + 4]
ja 0x41b694
jb 0x41b4e3
cmp eax, dword [esi]
jae 0x41b694
mov edx, dword [ebp - 0x48]
or edx, dword [ebp - 0x44]
je 0x41b694
mov edi, eax
shl edi, 4
add edi, eax
mov edx, dword [esi + 0x7f]
test byte [edi + edx + 0x10], 2
je 0x41b5f4
push ecx
push eax
mov ecx, esi
call fcn.0041d3e0
add esp, 8
test al, al
je 0x41b5f4
or eax, 0xffffffff
add dword [ebp - 0x48], eax
adc dword [ebp - 0x44], eax
mov eax, dword [esi + 0x7f]
add eax, edi
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
push eax
mov ecx, esi
call fcn.0041e7a0
add esp, 4
test al, al
je 0x41b5f4
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
mov ecx, dword [esi + 0x7f]
mov edx, dword [edi + ecx]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b6b9
mov eax, dword [ebp - 0x40]
mov dword [edi + ebx + 0x12], eax
mov ecx, dword [ebp - 0x3c]
mov dword [edi + ebx + 0x16], ecx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
adc ecx, 0
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx]
xor eax, eax
cmp eax, dword [esi + 0x26]
ja 0x41b5f4
jb 0x41b596
cmp ecx, dword [esi + 0x22]
ja 0x41b5f4
push 0
lea edx, [ebp - 0x24]
push edx
push ecx
mov eax, dword [esi + 0x7f]
mov ecx, dword [edi + eax + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b6b9
mov eax, dword [ebp - 0x40]
mov dword [edi + ebx + 0x1a], eax
mov ecx, dword [ebp - 0x3c]
mov dword [edi + ebx + 0x1e], ecx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
adc ecx, 0
mov dword [ebp - 0x3c], ecx
mov eax, dword [esi + 0x7f]
movsx ecx, byte [edi + eax + 0x10]
and ecx, 3
mov eax, dword [ebp - 0x38]
add eax, 2
mov edx, eax
shl edx, 4
add edx, ebx
mov byte [eax + edx], cl
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
add dword [ebp - 0x38], 1
adc dword [ebp - 0x34], 0
mov eax, fcn.004159a0
test eax, eax
je 0x41b686
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x50]
sub edx, dword [0x4b3780]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [0x4b3784]
push 0
push 0x2710
push eax
push edx
call fcn.0048f2e0
xor ecx, ecx
cmp edx, ecx
ja 0x41b659
jb 0x41b64c
mov ecx, 0x7d0
cmp eax, ecx
jae 0x41b659
cmp dword [ebp - 0x38], edi
jne 0x41b686
mov ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x34], ecx
jne 0x41b686
mov edx, dword [esi + 4]
push edx
mov eax, dword [esi]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004159a0
add esp, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [0x4b3780], ecx
mov edx, dword [ebp - 0x4c]
mov dword [0x4b3784], edx
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
jmp 0x41b4d0
xor eax, eax
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
jne 0x41b6c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041b6e6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret