Function at 0x403390
Capabilities:
Check for time delay via gettickcount
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
mov dword [esp + 0x144], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x432bec]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14c]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push ecx
mov byte [esp + 0x160], 1
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403443
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0040be82
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x403424
push esi
jmp 0x40343d
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
push esi
cmp eax, ebx
je 0x403472
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call fcn.0041cf30
lea ecx, [esp + 0x14c]
mov dword [esp + 0x144], 0xffffffff
call fcn.0041cf30
xor eax, eax
jmp 0x40373f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call fcn.0041d2a0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x144], 2
je 0x4034a2
push 0
mov ecx, eax
call fcn.00403bb0
mov ebx, eax
jmp 0x4034a4
xor ebx, ebx
push ebp
push 0x8a
mov ecx, ebx
mov byte [esp + 0x14c], 1
call fcn.0041dc2b
push 5
mov ecx, ebx
call fcn.0041c696
push 0x64
push 7
mov ecx, ebp
call fcn.00403a50
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041cf5a
mov ecx, ebx
call fcn.00403d40
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x14]
mov eax, 0x51eb851f
add ecx, 0xfffffc00
mul ecx
shr edx, 5
mov dword [esp + 0x20], edx
jne 0x40350d
mov dword [esp + 0x20], 1
lea edx, [esp + 0x38]
xor eax, eax
sub edi, edx
lea esi, [esp + eax + 0x38]
inc eax
cmp eax, 0x104
mov dl, byte [edi + esi]
mov byte [esi], dl
jl 0x403515
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
add eax, 0x400
xor esi, esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x40356c
mov edx, dword [ebp + 0x74]
lea eax, [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0x40]
push 0x14
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40356c
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 0x1e
jle 0x403539
mov eax, dword [esp + 0x14]
mov ecx, ebp
shr eax, 0xa
push eax
push 0x12
call fcn.00403a50
push eax
lea ecx, [esp + 0x18]
push str._s0K__ldK
push ecx
call fcn.0041916f
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0041cca5
mov ecx, ebx
call fcn.00403db0
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x4036ff
sub edi, esi
cmp edi, 0x800
jbe 0x4035e2
mov edi, 0x800
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push 0
push edx
lea eax, [esi + ecx]
push edi
mov dword [esp + 0x24], eax
push eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x44], 0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403643
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
mov ecx, eax
inc eax
cmp ecx, 0x1e
mov dword [esp + 0x34], eax
jg 0x4036ff
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x74]
lea edx, [esp + 0x30]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40360c
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x2c]
mov edi, eax
mov ecx, edi
sub ecx, edx
cmp ecx, 0x3e8
jb 0x4036eb
mov edx, dword [esp + 0x24]
mov eax, esi
sub eax, edx
xor edx, edx
div ecx
mov ecx, ebp
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
shr edx, 0xa
push edx
push 0x11
call fcn.00403a50
push eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
shr eax, 0xa
shr ecx, 0xa
push eax
push ecx
push 0x12
mov ecx, ebp
call fcn.00403a50
push eax
lea edx, [esp + 0x24]
push str._s_ldK__ldK_s_dKB_S
push edx
call fcn.0041916f
mov eax, esi
xor edx, edx
div dword [esp + 0x3c]
add esp, 0x1c
push eax
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041cca5
mov ecx, ebx
call fcn.00403db0
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, ebp
call fcn.00403760
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x14]
cmp esi, edi
jb 0x4035c8
mov dword [esp + 0x28], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x58]
test ebx, ebx
je 0x403713
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call fcn.0041cf30
lea ecx, [esp + 0x14c]
mov dword [esp + 0x144], 0xffffffff
call fcn.0041cf30
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret 4