Function at 0x401a00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esi + 0x11a08], eax
mov dword [esi + 0x11a0c], eax
mov dword [esi + 0x11a10], eax
mov dword [esi + 0x11a14], eax
mov dword [esi + 0x11a18], eax
mov dword [esi + 0x11a1c], eax
mov dword [esi + 0x11a20], eax
mov dword [esi + 0x11a24], eax
mov dword [esi + 0x11a70], eax
mov dword [esi + 0x11a74], eax
mov dword [esi + 0x11a78], eax
mov dword [esi + 0x11a7c], eax
mov dword [esi + 0x11a80], eax
push edi
mov dword [esi + 0x11a84], eax
mov dword [esi + 0x11a88], eax
push 0x40
xor ebx, ebx
mov dword [esi + 0x11a8c], eax
lea eax, [esi + 0x11a30]
push ebx
push eax
call fcn.0040a8b0
mov ecx, dword [esi]
add esp, 0xc
push ebx
push ebx
push 0xf0
push 0x43f
push ecx
mov dword [esi + 0x11a90], 0xffffffff
mov dword [esi + 0x11a28], ebx
mov dword [esi + 0x11a2c], ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [0x424420]
mov edi, eax
sub edi, 1
neg edi
sbb edi, edi
add edi, 1
cmp dword [edx + 0x858], 3
mov dword [esp + 0x10], edi
je 0x401acf
mov dword [esp + 0x10], ebx
mov edi, ebx
mov eax, dword [esi]
push ebx
push ebx
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00401890
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x11a00]
cmp dword [ecx], 0
je 0x401b3b
mov eax, dword [esi + 0x119fc]
mov edx, dword [esi + 0x119f8]
mov ecx, dword [eax]
cmp ecx, dword [edx]
je 0x401d4f
mov eax, dword [esi + 0x119fc]
mov edx, dword [esi + 0x119f8]
mov ecx, dword [eax]
cmp ecx, dword [edx]
je 0x401b12
lea ecx, [ecx]
mov edx, dword [esi + 0x119fc]
mov dword [esi + 0x19d0], 1
mov ecx, dword [edx]
mov eax, ecx
cdq
idiv dword [esi + 0x154c]
test edi, edi
mov ebp, dword [esi + edx*4 + 0x1528]
mov dword [esp + 0x1c], edx
je 0x401b8d
mov eax, dword [esi + 0x11a04]
movzx ecx, word [eax + ecx*2]
push ebp
push ecx
mov ecx, esi
call section..text
mov edi, dword [esi + 0x119fc]
mov ebx, dword [edi]
mov edx, dword [esi + 0x11a04]
movsx ecx, word [edx + ebx*2]
shl ecx, 0xd
mov eax, 0x10624dd3
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ebx + 1]
cdq
idiv dword [esi + 0x119f4]
mov dword [edi], edx
mov eax, dword [esi + 0x1524]
cmp byte [eax + ebp], 0x2b
jne 0x401d30
mov eax, dword [esp + 0x1c]
lea eax, [esp + eax*4 + 0x20]
mov edi, 1
add dword [eax], edi
mov edx, dword [eax]
cmp edx, dword [esi + 0x1570]
jb 0x401d30
xor ebp, ebp
lea ecx, [ecx*4 + 0x7fff]
cmp ecx, 0xffff
mov dword [eax], ebp
jle 0x401c04
mov ecx, 0xffff
mov edx, dword [esi + 0x119e4]
shl edx, 7
add edx, dword [esi + 0x119e0]
mov word [esi + edx*2 + 0x19e8], cx
add dword [esi + 0x119e0], edi
cmp dword [esi + 0x119e0], 0x7c
jb 0x401d30
mov eax, dword [esi + 0x119e4]
mov ecx, dword [esi + 0x119e8]
shl eax, 8
mov dword [esi + 0x119e0], ebp
mov dword [eax + esi + 0x19e0], ecx
mov dword [eax + esi + 0x19e4], ebp
add dword [esi + 0x119e8], edi
add dword [esi + 0x119e4], edi
cmp dword [esi + 0x119e4], 0x100
jb 0x401d30
mov eax, dword [esi + 0x1504]
push ebp
lea edx, [esp + 0x1c]
push edx
push 0x10000
lea edi, [esi + 0x19e0]
push edi
push eax
mov dword [esi + 0x119e4], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10000
push 0xff
push edi
call fcn.0040a8b0
mov ecx, dword [esp + 0x24]
add esp, 0xc
add dword [esi + 0x19c8], ecx
adc dword [esi + 0x19cc], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov edx, edi
sub edx, dword [esp + 0x14]
cmp edx, 0x3e8
jb 0x401d30
mov ecx, esi
call fcn.004018f0
mov eax, dword [esi + 0x19cc]
cmp eax, dword [esi + 0x19dc]
jl 0x401d25
jg 0x401cf0
mov ecx, dword [esi + 0x19c8]
cmp ecx, dword [esi + 0x19d8]
jbe 0x401d25
mov ecx, esi
call fcn.00401920
mov ecx, esi
call fcn.004013f0
mov ecx, dword [esi + 0x119fc]
mov ebx, dword [ecx]
mov eax, ebx
cdq
idiv dword [esi + 0x1548]
cmp edx, ebp
je 0x401d25
cmp ebx, edx
jl 0x401d1b
sub dword [ecx], edx
jmp 0x401d25
mov eax, dword [esi + 0x119f4]
sub eax, edx
add dword [ecx], eax
mov ecx, esi
call fcn.00401890
mov dword [esp + 0x14], edi
mov edx, dword [esi + 0x119fc]
mov ecx, dword [esi + 0x119f8]
mov eax, dword [edx]
cmp eax, dword [ecx]
mov edi, dword [esp + 0x10]
jne 0x401b50
jmp 0x401b12
mov eax, dword [esi + 0x119e0]
test eax, eax
je 0x401d78
push 0
lea ecx, [esp + 0x1c]
push ecx
shl eax, 8
push eax
mov eax, dword [esi + 0x1504]
lea edx, [esi + 0x19e0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.004018f0
mov ecx, esi
call fcn.00401920
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret