Function at 0x41b050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [0x44b754]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, dword [ebp + 0x14]
xor edx, edx
mov dword [esp + 0x458], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], edx
mov byte [esp + 0x38], dl
push ecx
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x478], edx
call fcn.004042d0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x46c], 1
jb 0x41b0c9
mov edx, dword [eax + 4]
jmp 0x41b0cc
lea edx, [eax + 4]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b0d1
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.00403210
cmp dword [esp + 0x30], 0x10
jb 0x41b0f9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042bb52
add esp, 4
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x41b116
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x48]
push edx
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0042d150
mov eax, dword [esp + 0x54]
add esp, 0xc
cmp eax, 0xe
ja 0x41b178
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebx
mov byte [esp + 0x23], 0
call edi
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
add ecx, eax
mov dword [esi], ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf
lea edx, [esp + 0x5c]
push edx
push ebx
call edi
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
add ecx, eax
mov dword [esi], ecx
jmp 0x41b2d5
cmp eax, 0x1e
ja 0x41b1ae
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebx
mov byte [esp + 0x23], 1
call edi
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
add ecx, eax
mov dword [esi], ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x1f
jmp 0x41b161
cmp eax, 0x2e
ja 0x41b1e7
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebx
mov byte [esp + 0x23], 2
call edi
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
add ecx, eax
mov dword [esi], ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x2f
jmp 0x41b161
cmp eax, 0x3e
ja 0x41b220
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebx
mov byte [esp + 0x23], 3
call edi
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
add ecx, eax
mov dword [esi], ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x3f
jmp 0x41b161
cmp eax, 0x5e
ja 0x41b259
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebx
mov byte [esp + 0x23], 4
call edi
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
add ecx, eax
mov dword [esi], ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x5f
jmp 0x41b161
lea ecx, [eax + 5]
mov edx, ecx
and edx, 0x3f
mov byte [esp + 0xf], 5
jne 0x41b26c
xor eax, eax
jmp 0x41b273
mov eax, 0x40
sub eax, edx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
lea ecx, [ecx + eax - 5]
push 1
lea eax, [esp + 0x1b]
push eax
push ebx
mov dword [esp + 0x28], ecx
call edi
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
add edx, ecx
push 0
mov dword [esi], edx
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push ebx
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
add edx, ecx
push 0
mov dword [esi], edx
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebx
call edi
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
add eax, edx
mov dword [esi], eax
cmp dword [esp + 0x4c], 0x10
jb 0x41b2e9
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bb52
add esp, 4
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042baa4
mov esp, ebp
pop ebp
ret