Function at 0x2403ef0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebp, edx
xor ebx, ebx
lea eax, [esp + 0x30]
test eax, eax
mov edi, ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
mov dword [ebp], ebx
jne 0x2403f2b
mov dword [0x24e2600], 0xb
pop edi
pop esi
mov dword [ebp], 3
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, 0x24e2604
call fcn.0247f850
test eax, eax
jne 0x2403f52
pop edi
pop esi
mov dword [0x24e2600], 7
mov dword [ebp], 3
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [0x24e2608]
xor ecx, ecx
mov dword [esp + 0x24], ecx
push ebx
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x24e260c]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
mov ecx, 0x24e25d8
call fcn.02406850
test eax, eax
je 0x2403f1a
mov edx, dword [esp + 0x24]
cmp edx, dword [0x24e2610]
jne 0x2403f95
mov eax, dword [esp + 0x28]
cmp eax, dword [0x24e2614]
je 0x2404004
mov eax, dword [0x24e25d8]
mov ecx, dword [0x24e25e0]
mov edx, dword [0x24e25e4]
or esi, 0xffffffff
cmp eax, esi
mov dword [0x24e2610], ecx
mov dword [0x24e2614], edx
je 0x2403fc0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x24e25d8], esi
mov dword [0x24e25f8], ebx
mov dword [0x24e25fc], ebx
xor eax, eax
mov ecx, 6
mov edi, 0x24e25dc
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [0x24e261c], esi
mov ecx, 0x20
xor eax, eax
mov edi, 0x24e2620
rep stosd dword es:[edi], eax
pop edi
pop esi
mov dword [ebp], 2
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [edi]
cmp eax, ebx
mov dword [edi + 4], eax
je 0x240422c
lea esi, [eax + 4]
cmp esi, ebx
je 0x240422c
mov eax, dword [esi + 8]
dec eax
je 0x2404187
dec eax
je 0x24040da
dec eax
jne 0x24041d0
mov edi, dword [esi]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x24e25d8
mov dword [esp + 0x1c], ebx
call fcn.02407030
test eax, eax
je 0x240420e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ebx
push ebx
mov ebp, eax
mov dword [0x24e25f0], eax
mov eax, dword [0x24e25d8]
push edx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x24041ec
mov edx, dword [0x24e25d8]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0xdea
push edi
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x24041f8
cmp dword [esp + 0x18], 0xdea
jne 0x24041f8
mov eax, dword [esp + 0x14]
push 1
push eax
mov ecx, 0x24e25d8
call fcn.02406a00
test eax, eax
je 0x240420e
mov ecx, dword [esi]
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0xdde], ebp
jmp 0x24041d0
mov esi, dword [esi]
mov eax, dword [esi + 0xdde]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1b]
push edx
push eax
mov ecx, 0x24e25d8
mov dword [esp + 0x24], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x2c], ebx
call fcn.02406ba0
test eax, eax
je 0x240420e
cmp dword [esp + 0x14], ebx
jne 0x2404204
cmp byte [esp + 0x13], bl
je 0x2404204
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x24e25d8]
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x24041ec
mov eax, dword [0x24e25d8]
push ebx
lea edx, [esp + 0x24]
push edx
push 0xdea
push esi
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x24041f8
cmp dword [esp + 0x20], 0xdea
jne 0x24041f8
mov ecx, 0x24e25d8
call fcn.02406f60
test eax, eax
je 0x240420e
jmp 0x24041d0
mov esi, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x1b]
push eax
push esi
mov ecx, 0x24e25d8
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x24], ebx
call fcn.02406ba0
test eax, eax
je 0x240420e
cmp dword [esp + 0x1c], ebx
jne 0x2404204
cmp byte [esp + 0x13], bl
je 0x2404204
push ebx
push esi
mov ecx, 0x24e25d8
call fcn.02406a00
test eax, eax
je 0x240420e
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x240422c
mov eax, dword [eax]
cmp eax, ebx
mov dword [edi + 4], eax
je 0x240422c
lea esi, [eax + 4]
cmp esi, ebx
je 0x240422c
jmp 0x240401c
mov dword [0x24e2600], 0xa
jmp 0x240420e
mov dword [0x24e2600], 4
jmp 0x240420e
mov dword [0x24e2600], 9
mov ecx, 0x24e25d8
call fcn.02405c70
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, 0x24e25d8
call fcn.02405c70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret