Function at 0x490000
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e231
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x190], eax
lea eax, [esi + 0x30]
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], eax
cmp edi, dword [eax]
jg 0x490572
push 0x6400000
call fcn.004909a0
lea eax, [esi + 0x38]
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 0x180], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x490099
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x17c], eax
cmp eax, 0xffffffff
jne 0x4900d0
mov eax, dword [ebp - 0x180]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x490572
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x18c], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x490112
push eax
lea eax, [ebp - 0x184]
mov word [ebp - 0x174], 0xfeff
push eax
push 2
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x17c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
push 0x500
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], eax
call fcn.00461d40
lea eax, [ebp - 0x188]
push eax
call fcn.004f2e6b
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x188]
push eax
mov dword [ebp - 0x184], edx
call fcn.004f6d78
push 0x102
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004e30c0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x49018a
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x174]
push eax
movsx eax, byte [edi + str.ENNNIWARNT]
push esi
push eax
push dword [ecx]
mov eax, dword [ecx + 0x10]
push dword [ecx + 4]
inc eax
push dword [ecx + 8]
push dword [ecx + 0xc]
push eax
mov eax, dword [ecx + 0x14]
add eax, 0x76c
push eax
push str._d__02d__02d__02d:_02d:_02d__t_c__t_s__t_08x:_08x__t
lea eax, [ebp - 0x140]
push 0x80
push eax
call fcn.0048f9f0
lea ecx, [ebp - 0x140]
add esp, 0x34
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4901e2
sub ecx, edx
lea eax, [ebp - 0x140]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.0044e920
push 0xc802
call fcn.004cba04
mov edi, eax
add esp, 4
test edi, edi
je 0x490229
push 0xc802
push 0
push edi
call fcn.004e30c0
add esp, 0xc
jmp 0x49022b
xor edi, edi
mov dword [ebp - 0x184], edi
push dword [ebp - 0x190]
mov byte [ebp - 4], 1
push 0
push dword [ebp - 0x194]
push 0x6400
push 0x6401
push edi
call fcn.004622c0
push dword [eax + 4]
push dword [eax]
call fcn.004ebb86
mov eax, dword [ebp - 0x198]
add esp, 0x20
cmp dword [eax], 4
jg 0x490286
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490270
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x49048c
push 1
push 0x683b44
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test ebx, ebx
jne 0x4902a6
xor ebx, ebx
jmp 0x4902d3
push ebx
call esi
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.004cb9b0
mov ebx, esp
xor eax, eax
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x19c]
mov word [ebx], ax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x4902e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4902e0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
push 1
push 0x683b48
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490313
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
push 5
push 0x683b4c
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
mov eax, dword [ebp - 0x178]
test eax, eax
jne 0x49034f
xor ebx, ebx
jmp 0x490379
push eax
call esi
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.004cb9b0
mov ebx, esp
xor eax, eax
push esi
push ebx
push 0xffffffffffffffff
mov word [ebx], ax
mov eax, dword [ebp - 0x178]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, ebx
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490380
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
push 1
push 0x683b58
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
mov eax, dword [ebp - 0x1a0]
test eax, eax
jns 0x4903d1
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00469a70
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x4903dd
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00469a70
mov ecx, eax
xor eax, eax
xor edx, edx
mov word [ebp - 0x170], ax
add esp, 8
lea eax, [ebp - 0x12]
mov dword [ebp - 0x160], edx
mov esi, 7
mov dword [ebp - 0x15c], esi
cmp ecx, eax
je 0x490420
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x170]
call fcn.0044e920
mov esi, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x160]
cmp esi, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x170]
cmovae eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x158]
push edx
push eax
call fcn.0044e7a0
mov edx, dword [ebp - 0x15c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x490485
mov ecx, dword [ebp - 0x170]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49047b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x490596
push edx
push ecx
call fcn.004cb4db
add esp, 8
push 1
push 0x6783f8
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
mov byte [ebp - 4], 0
test edi, edi
je 0x4904a8
push edi
call fcn.004cb4e9
add esp, 4
push 2
push 0x67d768
lea ecx, [ebp - 0x158]
call fcn.0044e7a0
cmp dword [ebp - 0x144], 8
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x17c]
push 2
push 0
push 0
push ebx
mov dword [ebp - 0x1a4], 0
lea esi, [eax + eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x144], 8
lea ecx, [ebp - 0x1a4]
push 0
push ecx
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x180]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x144]
cmp edx, 8
jb 0x490572
mov ecx, dword [ebp - 0x158]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x490568
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x490596
push edx
push ecx
call fcn.004cb4db
add esp, 8
lea esp, [ebp - 0x1b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret 0x18
call fcn.004e6589
int3