Function at 0x404925
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x105c
call fcn.00411770
mov eax, dword [0x41b214]
xor eax, esp
mov dword [esp + 0x1058], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
lea esi, [esp + 0x10]
mov ebx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], edi
call fcn.00405ba2
push 0xbb8
push 2
mov eax, esi
push eax
call fcn.00405be9
push 5
push 3
mov eax, esi
push eax
call fcn.00405be9
lea eax, [esp + 0x20]
call fcn.0040567e
cmp dword [edi + 0x18], 8
jb 0x40498d
mov eax, dword [edi + 4]
jmp 0x404990
lea eax, [edi + 4]
lea ecx, [esp + 0x38]
call fcn.00404e86
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x14]
call fcn.00405b43
push eax
lea edi, [esp + 0x28]
call fcn.004057c0
neg al
sbb al, al
push 0
inc al
push 1
lea esi, [esp + 0x40]
mov byte [esp + 0x17], al
call fcn.00403ae3
cmp byte [esp + 0xf], 0
je 0x4049fa
lea ecx, [esp + 0x20]
call fcn.004056aa
lea ecx, [esp + 0x10]
call fcn.00405bde
xor al, al
mov ecx, dword [esp + 0x1064]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004076ec
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x20]
push eax
call fcn.00405928
test al, al
je 0x404a28
mov eax, dword [ebx]
test eax, eax
je 0x4049cf
mov esi, dword [eax]
mov eax, 0x418348
sub esp, 0x1c
mov ecx, esp
add esi, 0x14
call fcn.00404e86
mov ecx, dword [ebx]
call dword [esi]
jmp 0x4049cf
lea eax, [esp + 0x20]
call fcn.00405a08
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x404a3f
mov eax, dword [ebx]
cmp eax, esi
jmp 0x404a0c
mov ecx, dword [ebx]
cmp ecx, esi
mov eax, dword [ebx + 4]
mov dword [esp + 0x2c], eax
je 0x404a85
fldz
mov eax, dword [ecx]
push ecx
push ecx
fstp qword [esp]
push esi
push esi
push dword [esp + 0x28]
call dword [eax + 0xc]
mov ecx, dword [ebx]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [ebx]
push dword [esp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
fldz
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ecx
push ecx
fstp qword [esp]
push esi
push edi
push dword [esp + 0x28]
call dword [eax + 0xc]
push 0xfff
lea eax, [esp + 0x65]
push esi
push eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x6c], 0
call fcn.00407c10
add esp, 0xc
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
test esi, esi
fst qword [esp + 0x50]
fstp qword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jb 0x404b9d
ja 0x404adb
test edi, edi
jbe 0x404b9d
mov ecx, dword [ebx]
test ecx, ecx
je 0x404aee
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x404be4
lea eax, [esp + 0x60]
push eax
lea esi, [esp + 0x3c]
lea eax, [esp + 0x24]
call fcn.00405952
mov esi, eax
cmp esi, 0xffffffff
jne 0x404b13
cmp dword [ebx], 0
je 0x404b7e
mov eax, dword [ebx]
jmp 0x404a0e
test esi, esi
jbe 0x404b70
and dword [esp + 0x30], 0
push 0
lea eax, [esp + 0x34]
push eax
push esi
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x30], esi
je 0x404b42
cmp dword [ebx], 0
jne 0x404bf2
mov ecx, dword [ebx]
test ecx, ecx
je 0x404b7e
fld qword [esp + 0x58]
mov esi, dword [esp + 0x48]
mov eax, dword [ecx]
push ecx
push ecx
fstp qword [esp]
push esi
push edi
push dword [esp + 0x28]
call dword [eax + 0xc]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx]
mov eax, dword [ecx]
add esi, edx
push esi
call dword [eax + 8]
jmp 0x404b7e
jne 0x404b9d
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 5
ja 0x404b9d
xor eax, eax
cmp dword [esp + 0x4c], eax
jb 0x404adb
ja 0x404b9d
cmp dword [esp + 0x48], edi
jb 0x404adb
cmp dword [esp + 0x48], edi
jne 0x404bab
xor eax, eax
cmp dword [esp + 0x4c], eax
je 0x404c00
mov eax, dword [ebx]
test eax, eax
je 0x404bc9
mov esi, dword [eax]
sub esp, 0x1c
mov eax, 0x418348
mov ecx, esp
add esi, 0x14
call fcn.00404e86
mov ecx, dword [ebx]
call dword [esi]
xor bl, bl
lea ecx, [esp + 0x20]
call fcn.004056aa
lea ecx, [esp + 0x10]
call fcn.00405bde
mov al, bl
jmp 0x4049e3
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, 0x418358
jmp 0x404a15
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, 0x41836c
jmp 0x404a15
mov ecx, dword [ebx]
add dword [ebx + 4], edi
test ecx, ecx
je 0x404c27
fld qword [esp + 0x58]
mov eax, dword [ecx]
push ecx
push ecx
fstp qword [esp]
push edi
push edi
push dword [esp + 0x28]
call dword [eax + 0xc]
mov ecx, dword [ebx]
push dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov bl, 1
jmp 0x404bcb