Function at 0x4188d8
Capabilities:
Check for time delay via gettickcount
Delete file
Get file size
Prepare http request
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x4188e1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
call fcn.00404da8
mov eax, dword [ebp + 8]
call fcn.00405bf0
xor eax, eax
push ebp
push 0x419fbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebp
push 0x419e25
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404c40
jne 0x418969
push ebp
push 0
push 0
push 0
push 0
push 0x419fd8
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
lea eax, [ebp - 0x88]
mov edx, 0x419ff0
call fcn.00404a70
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0041a618
lea ecx, [ebp - 0xc8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0041a448
mov edx, dword [ebp - 0xc8]
lea eax, [ebp - 0x80]
call fcn.00404664
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x84]
call fcn.00404664
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.0040b798
mov eax, dword [ebp - 0xcc]
call fcn.0040b370
mov byte [ebp - 0xae], 0
mov byte [ebp - 0xad], 0
mov byte [ebp - 0x4c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x419e14
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x34], eax
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
xor eax, eax
call fcn.004186d0
pop ecx
xor eax, eax
push ebp
push 0x419dac
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 8]
call fcn.004173ac
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4b]
push eax
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.0041ac4c
test al, al
jne 0x418add
push ebp
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xd4]
mov edx, dword [ebp - 0x7c]
call fcn.00404b64
mov eax, dword [ebp - 0xd4]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
cmp byte [ebp - 0x49], 0
je 0x418afa
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0xc4]
mov edx, 0x10
call fcn.004067d4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x419096
cmp byte [ebp - 0x4b], 0
je 0x418b4e
push 0x800104
push 0
push 0
push 0x419ff8
mov eax, dword [ebp - 0x8c]
call fcn.00404b74
push eax
push 0x41a00c
mov eax, dword [ebp - 0x18]
push eax
call sub.Winhttp.dll_WinHttpOpenRequest
mov dword [ebp - 0x1c], eax
jmp 0x418b79
push 0x104
push 0
push 0
push 0x419ff8
mov eax, dword [ebp - 0x8c]
call fcn.00404b74
push eax
push 0x41a00c
mov eax, dword [ebp - 0x18]
push eax
call sub.Winhttp.dll_WinHttpOpenRequest
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x418d52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x98]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041bb68
mov byte [ebp - 0x4a], al
cmp byte [ebp - 0x4a], 0
jne 0x418c3f
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x418be0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0xd8]
call fcn.0040c190
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x7c]
mov edx, 0x41a020
call fcn.004046e8
jmp 0x418bed
lea eax, [ebp - 0x7c]
mov edx, 0x41a03c
call fcn.00404464
push ebp
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 0x7c]
call fcn.00404b64
mov eax, dword [ebp - 0xdc]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
push ebp
lea ecx, [ebp - 0xa8]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
call fcn.0041884c
pop ecx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea eax, [ebp - 0xc4]
call fcn.0040b4d4
mov eax, dword [ebp - 0x44]
xor edx, edx
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x2c]
jne 0x418c7d
cmp eax, dword [ecx + 0x28]
jbe 0x418cc1
jmp 0x418c7f
jle 0x418cc1
push ebp
push 0
push 0
push 0
push 0
push 0x41a054
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
lea eax, [ebp - 0xe0]
mov edx, dword [ebp - 0x10]
call fcn.00404664
mov eax, dword [ebp - 0xe0]
call fcn.00417cb4
test al, al
je 0x418d35
mov eax, dword [ebp - 0x10]
call fcn.00417b80
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x418cf6
cmp eax, dword [esp]
pop edx
pop eax
jne 0x418d35
mov eax, dword [ebp - 0x10]
call fcn.00417bc8
fcomp qword [ebp - 0xa8]
fnstsw ax
sahf
jne 0x418d35
mov byte [ebp - 0xad], 1
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418d59
cmp dword [ebp - 0x1c], 0
je 0x418d51
mov eax, dword [ebp - 0x1c]
push eax
call sub.Winhttp.dll_WinHttpCloseHandle
ret
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x80]
call fcn.00417cb4
test al, al
je 0x4190c7
mov eax, dword [ebp - 0x80]
call fcn.0040489c
mov edx, eax
lea eax, [ebp - 0x108]
call fcn.004045d4
mov eax, dword [ebp - 0x108]
call fcn.0040b318
cmp byte [ebp - 0x4b], 0
je 0x419101
push 0x800104
push 0
push 0
push 0x419ff8
mov eax, dword [ebp - 0x8c]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x88]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.Winhttp.dll_WinHttpOpenRequest
mov dword [ebp - 0x20], eax
jmp 0x419133
push 0x104
push 0
push 0
push 0x419ff8
mov eax, dword [ebp - 0x8c]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x88]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.Winhttp.dll_WinHttpOpenRequest
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x419c38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x3c]
push eax
mov cl, byte [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
call fcn.00417ce4
test al, al
jne 0x419199
push ebp
push 0
push 0
push 0
push 0
push 0x41a0bc
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x98]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0041bb68
mov byte [ebp - 0x4a], al
cmp byte [ebp - 0x4a], 0
jne 0x419269
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
xor edx, edx
call fcn.00404c40
jne 0x419225
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x419215
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x110]
call fcn.0040c190
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
mov edx, 0x41a0d8
call fcn.004046e8
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
jmp 0x419225
mov eax, dword [ebp - 4]
add eax, 0x48
mov edx, 0x41a0f0
call fcn.00404a4c
push ebp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
cmp byte [ebp - 0x4c], 0
je 0x4192cc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0x84]
call fcn.00404664
mov eax, dword [ebp - 0x114]
call fcn.0040489c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x419487
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetFilePointer_1
jmp 0x419487
push ebp
lea ecx, [ebp - 0xa8]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x20]
call fcn.0041884c
pop ecx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea eax, [ebp - 0xc4]
call fcn.0040b4d4
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0x10]
call fcn.00404664
mov eax, dword [ebp - 0x118]
call fcn.00417cb4
test al, al
je 0x419450
cmp dword [ebp - 0x44], 0
jbe 0x419374
mov eax, dword [ebp - 0x10]
call fcn.00417b80
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x419335
cmp eax, dword [esp]
pop edx
pop eax
jne 0x419374
mov eax, dword [ebp - 0x10]
call fcn.00417bc8
fcomp qword [ebp - 0xa8]
fnstsw ax
sahf
jne 0x419374
mov byte [ebp - 0xad], 1
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x419450
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x134]
mov edx, dword [ebp - 0x10]
call fcn.00404664
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040b714
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x138]
call fcn.0040c190
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x124], eax
mov byte [ebp - 0x120], 0xb
lea edx, [ebp - 0x12c]
mov ecx, 1
mov eax, 0x41a10c
call fcn.0040bc08
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
push ebp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x84]
call fcn.00404664
mov eax, dword [ebp - 0x13c]
call fcn.0040489c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x41951e
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4194bf
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x140]
call fcn.0040c190
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x7c]
mov edx, 0x41a13c
call fcn.004046e8
jmp 0x4194cc
lea eax, [ebp - 0x7c]
mov edx, 0x41a158
call fcn.00404464
push ebp
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x7c]
call fcn.00404b64
mov eax, dword [ebp - 0x144]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
xor eax, eax
push ebp
push 0x419c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call fcn.00405c8c
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4195d8
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x419574
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x148]
call fcn.0040c190
mov ecx, dword [ebp - 0x148]
lea eax, [ebp - 0x7c]
mov edx, 0x41a174
call fcn.004046e8
jmp 0x419581
lea eax, [ebp - 0x7c]
mov edx, 0x41a18c
call fcn.00404464
push ebp
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x7c]
call fcn.00404b64
mov eax, dword [ebp - 0x14c]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
xor eax, eax
push ebp
push 0x419bbf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push ebp
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 1
call fcn.004186d0
pop ecx
cmp byte [ebp - 0x49], 0
je 0x419682
mov dword [ebp - 0xc], 1
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
cmp dword [ebp - 0x5c], 0
jne 0x41969b
cmp dword [ebp - 0x60], 0
jne 0x41969b
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.Winhttp.dll_WinHttpReadData
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x4a], al
cmp byte [ebp - 0x4a], 0
je 0x419ae6
cmp dword [ebp - 0x30], 0
jbe 0x4199e0
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x419703
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FlushFileBuffers
test eax, eax
jne 0x419707
xor eax, eax
jmp 0x419709
mov al, 1
mov byte [ebp - 0x4a], al
cmp byte [ebp - 0x4a], 0
jne 0x41979b
push ebp
push 0
push 0
push 0
push 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x158]
call fcn.0040c190
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, 0x41a1a4
call fcn.004046e8
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
call fcn.00404b64
mov eax, dword [ebp - 0x150]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
je 0x419855
push ebp
push 0
push 0
push 0
push 0
push 0x41a1b8
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x164]
call fcn.0040a784
push dword [ebp - 0x164]
push 0x41a1cc
mov eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x168]
call fcn.0040a784
push dword [ebp - 0x168]
push 0x41a1e4
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.0040475c
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
call fcn.00404b64
mov eax, dword [ebp - 0x15c]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x419897
mov eax, dword [ebp - 0x80]
call fcn.0040489c
push eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x16c]
call fcn.0040a784
mov eax, dword [ebp - 0x16c]
call fcn.0040489c
push eax
push 0x41a09c
push 0x41a0ac
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, dword [ebp - 0x30]
xor edx, edx
add eax, dword [ebp - 0x70]
adc edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x60]
sbb edx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
jne 0x4198d0
cmp dword [ebp - 0x58], 0x3e8
jb 0x41995e
jmp 0x4198d6
jl 0x41995e
cmp dword [ebp - 0x44], 0
jbe 0x41991b
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x44]
ja 0x41991b
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x174], eax
xor eax, eax
mov dword [ebp - 0x170], eax
fild qword [ebp - 0x174]
fild qword [ebp - 0x70]
fdivp st(1)
fild qword [ebp - 0x58]
fmulp st(1)
call fcn.00402de0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
jmp 0x419929
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
fild qword [ebp - 0x70]
fild qword [ebp - 0x58]
fdivp st(1)
fmul dword [0x41a1f4]
call fcn.00402de0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x54], 0
jne 0x419973
cmp dword [ebp - 0x58], 0x1f4
jbe 0x419682
jmp 0x419979
jle 0x419682
push ebp
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 1
call fcn.004186d0
pop ecx
cmp byte [ebp - 0x49], 0
je 0x419682
mov dword [ebp - 0xc], 1
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
cmp dword [ebp - 0x30], 0
jne 0x419682
push ebp
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 1
call fcn.004186d0
pop ecx
cmp dword [ebp - 0x44], 0
je 0x419a30
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, dword [ebp - 0x44]
jne 0x419a52
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x80]
call fcn.00417cb4
test al, al
je 0x419ba1
mov eax, dword [ebp - 0x80]
call fcn.0040b318
jmp 0x419ba1
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, dword [ebp - 0x44]
jae 0x419ab0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x419a7d
mov eax, dword [ebp - 4]
inc dword [eax + 0x38]
mov byte [ebp - 0xae], 1
jmp 0x419ba1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
push ebp
push 0
push 0
push 0
push 0
push 0x41a1fc
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
jmp 0x419ba1
push ebp
push 0
push 0
push 0
push 0
push 0x41a22c
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004185f0
jmp 0x419ba1
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x419b38
push 0x41a260
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x178]
call fcn.0040a784
push dword [ebp - 0x178]
push 0x41a27c
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x17c]
call fcn.0040c190
push dword [ebp - 0x17c]
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.0040475c
jmp 0x419b45
lea eax, [ebp - 0x7c]
mov edx, 0x41a288
call fcn.00404464
push ebp
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x180]
mov edx, dword [ebp - 0x7c]
call fcn.00404b64
mov eax, dword [ebp - 0x180]
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x49]
mov ecx, dword [ebp + 0xc]
mov al, 3
call fcn.004186d0
pop ecx
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419bc6
cmp dword [ebp - 0x28], 0
je 0x419bbe
mov eax, dword [ebp - 0x28]
push eax
call fcn.00405ca4
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419fc5
lea eax, [ebp - 0x1a4]
call fcn.00404a10
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.004043f0
lea eax, [ebp - 0x194]
mov edx, 2
call fcn.00404a28
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.004043f0
lea eax, [ebp - 0x180]
call fcn.00404a10
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.004043f0
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.004043f0
lea eax, [ebp - 0x15c]
call fcn.00404a10
lea eax, [ebp - 0x158]
mov edx, 2
call fcn.004043f0
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00404a28
lea eax, [ebp - 0x148]
call fcn.004043cc
lea eax, [ebp - 0x144]
call fcn.00404a10
lea eax, [ebp - 0x140]
mov edx, 5
call fcn.004043f0
lea eax, [ebp - 0x11c]
mov edx, 0x10
call fcn.004043f0
lea eax, [ebp - 0xdc]
call fcn.00404a10
lea eax, [ebp - 0xd8]
call fcn.004043cc
lea eax, [ebp - 0xd4]
call fcn.00404a10
lea eax, [ebp - 0xd0]
mov edx, 2
call fcn.004043f0
lea eax, [ebp - 0xc8]
call fcn.00404a10
lea eax, [ebp - 0x98]
mov edx, 6
call fcn.00404a28
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.004043f0
lea eax, [ebp - 0x10]
call fcn.00404a10
lea eax, [ebp + 8]
call fcn.00405bac
ret