Function at 0x2404510
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x24beccc
push eax
mov eax, 0x2250
mov dword fs:[0], esp
call fcn.024adb70
push ebx
push ebp
push esi
push edi
mov edi, edx
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x3c], edi
mov ebp, ecx
je 0x2404ca6
cmp dword [esp + 0x2270], ebx
je 0x2404ca6
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x40]
mov ecx, edi
mov dword [esp + 0x2268], ebx
mov dword [esp + 0x40], ebx
call fcn.024055d0
test eax, eax
jne 0x24045c4
push 0x2030
push 0xa02f
push 0xa09a
push ebp
call fcn.0241c630
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x24045a8
jmp 0x2404ca6
cmp dword [esp + 0x40], ebx
je 0x2404653
mov edx, edi
mov ecx, 0x24e2604
call fcn.0247f900
test eax, eax
jne 0x24045ea
mov dword [0x24e2600], 0xc
jmp 0x240460b
push ebx
push ebx
push 3
push edi
mov ecx, 0x24e25d8
mov dword [0x24e260c], 3
call fcn.02406850
cmp eax, ebx
jne 0x2404a3c
push 0x2030
push 0xa02f
push 0xa096
push ebp
call fcn.0241c630
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov edx, dword [eax]
push eax
mov dword [esp + 0x18], edx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x2404637
jmp 0x2404ca6
push 0x2034
push 0xa02f
push 0xa111
push ebp
call fcn.0241c630
cmp eax, 6
je 0x24046a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x2404684
jmp 0x2404ca6
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.024052e0
test eax, eax
jne 0x24046f7
push 0x2030
push 0xa02f
push 0xa09b
push ebp
call fcn.0241c630
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov edx, dword [eax]
push eax
mov dword [esp + 0x18], edx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x24046db
jmp 0x2404ca6
mov edx, edi
mov ecx, 0x24e2604
call fcn.0247f900
test eax, eax
jne 0x2404713
mov dword [0x24e2600], 0xc
jmp 0x2404732
push 3
push edi
mov ecx, 0x24e25d8
mov dword [0x24e260c], 3
call fcn.02406770
cmp eax, ebx
jne 0x24048b5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [0x24e27c8]
lea eax, [esp + 0x20]
push eax
mov edx, 0xa02f
mov byte [esp + 0x226c], 2
call fcn.02481110
test eax, eax
jne 0x24047a8
lea ecx, [esp + 0x20]
call fcn.024017d0
lea ecx, [esp + 0x28]
call fcn.024017d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x240478c
jmp 0x2404ca6
mov ecx, dword [0x24e27c8]
lea edx, [esp + 0x28]
push edx
mov edx, 0xa08f
call fcn.02481110
test eax, eax
jne 0x2404806
lea ecx, [esp + 0x20]
call fcn.024017d0
lea ecx, [esp + 0x28]
call fcn.024017d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x24047ea
jmp 0x2404ca6
mov edx, edi
lea ecx, [esp + 0x28]
call fcn.0247f890
test eax, eax
jne 0x240485a
lea ecx, [esp + 0x20]
call fcn.024017d0
lea ecx, [esp + 0x28]
call fcn.024017d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov edx, dword [eax]
push eax
mov dword [esp + 0x18], edx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x240483e
jmp 0x2404ca6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push 0x2030
push eax
push ecx
push ebp
call dword [sym.imp.user32.dll_MessageBoxW]
lea ecx, [esp + 0x20]
call fcn.024017d0
lea ecx, [esp + 0x28]
call fcn.024017d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], 0xffffffff
je 0x2404ca6
mov edx, dword [eax]
push eax
mov dword [esp + 0x18], edx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x2404899
jmp 0x2404ca6
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x2404a3c
lea edi, [eax + 4]
cmp edi, ebx
je 0x2404a38
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x24e25d8
mov dword [esp + 0x40], ebx
call fcn.02407030
test eax, eax
je 0x2404996
mov eax, dword [esp + 0x28]
mov ecx, dword [0x24e25d8]
mov edx, dword [esp + 0x38]
push ebx
push ebx
push eax
push ecx
mov dword [0x24e25f0], edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
or esi, 0xffffffff
cmp eax, esi
je 0x240497e
mov eax, dword [0x24e25d8]
push ebx
lea edx, [esp + 0x24]
push edx
push 0xdea
push edi
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x240498a
cmp dword [esp + 0x20], 0xdea
jne 0x240498a
mov ecx, dword [esp + 0x38]
push 1
push ecx
mov ecx, 0x24e25d8
call fcn.02406a00
test eax, eax
je 0x2404999
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x2404b63
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x2404b63
lea edi, [eax + 4]
cmp edi, ebx
je 0x2404b63
jmp 0x24048d0
mov dword [0x24e2600], 0xa
jmp 0x2404999
mov dword [0x24e2600], 4
jmp 0x2404999
or esi, 0xffffffff
mov eax, dword [0x24e25e4]
mov edx, dword [0x24e25e0]
mov dword [0x24e2614], eax
mov eax, dword [0x24e25d8]
cmp eax, esi
mov dword [0x24e2610], edx
je 0x24049bf
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
push 0x2030
stosb byte es:[edi], al
push 0xa02f
push 0xa096
xor eax, eax
mov dword [0x24e261c], esi
mov ecx, 0x20
mov edi, 0x24e2620
push ebp
rep stosd dword es:[edi], eax
call fcn.0241c630
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], esi
je 0x2404ca6
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x2404a1c
jmp 0x2404ca6
mov edi, dword [esp + 0x3c]
or esi, 0xffffffff
lea ecx, [esp + 0xe30]
call fcn.0245db00
push edi
mov byte [esp + 0x226c], 3
call fcn.024adc6c
mov edi, eax
add esp, 4
shl edi, 1
je 0x2404a9f
push edi
lea ecx, [esp + 0x21d8]
call fcn.02401bb0
test eax, eax
je 0x2404a9f
mov esi, dword [esp + 0x3c]
mov ecx, edi
mov edi, dword [esp + 0x21d8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 8
lea ecx, [esp + 0xe34]
call fcn.0245de90
or esi, 0xffffffff
lea ecx, [esp + 0xe30]
mov byte [esp + 0x2268], bl
call fcn.0245dcd0
mov ecx, 0x24e25d8
call fcn.02406100
test eax, eax
jne 0x2404b6c
mov eax, dword [0x24e25e0]
mov ecx, dword [0x24e25e4]
mov dword [0x24e2610], eax
mov eax, dword [0x24e25d8]
cmp eax, esi
mov dword [0x24e2614], ecx
je 0x2404aea
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
push 0x2030
stosb byte es:[edi], al
push 0xa02f
push 0xa096
xor eax, eax
mov dword [0x24e261c], esi
mov ecx, 0x20
mov edi, 0x24e2620
push ebp
rep stosd dword es:[edi], eax
call fcn.0241c630
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x2268], esi
je 0x2404ca6
mov edx, dword [eax]
push eax
mov dword [esp + 0x18], edx
call fcn.024adc89
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x2404b47
jmp 0x2404ca6
mov edi, dword [esp + 0x3c]
jmp 0x2404a3f
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x24e25d8
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [0x24e25f8], ebx
call fcn.02405cd0
test eax, eax
jne 0x2404c06
mov eax, dword [0x24e25e0]
mov ecx, dword [0x24e25e4]
mov dword [0x24e2610], eax
mov eax, dword [0x24e25d8]
cmp eax, esi
mov dword [0x24e2614], ecx
je 0x2404bbd
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
push 0x2030
mov ecx, 0x20
xor eax, eax
mov edi, 0x24e2620
push 0xa02f
mov dword [0x24e261c], esi
rep stosd dword es:[edi], eax
push 0xa09a
jmp 0x2404c90
cmp dword [esp + 0x30], ebx
jne 0x2404c56
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2270]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xe26], edx
mov byte [esp + 0xe25], bl
call fcn.024066b0
test eax, eax
je 0x2404c77
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, 0x24e25d8
call fcn.02405cd0
test eax, eax
je 0x2404cc3
cmp dword [esp + 0x30], ebx
je 0x2404c0c
mov ecx, 0x24e25d8
call fcn.02405c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x2268], esi
call fcn.0248c4a0
mov eax, 1
jmp 0x2404ca8
mov ecx, 0x24e25d8
call fcn.02405c70
push 0x2030
push 0xa02f
push 0xa03f
push ebp
call fcn.0241c630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2268], esi
call fcn.0248c4a0
xor eax, eax
mov ecx, dword [esp + 0x2260]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x225c
ret 4
mov ecx, 0x24e25d8
call fcn.02405c70
push 0x2030
push 0xa02f
push 0xa09a
jmp 0x2404c90