Function at 0x10046eda
Capabilities:
Check for time delay via gettickcount
Check http status code
Write file on windows

Disassembly:
push 0x78
mov eax, 0x1008972d
call fcn.1006301c
mov ebx, ecx
mov dword [ebp - 0x54], ebx
movzx ecx, byte [ebp + 8]
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], eax
mov eax, ecx
imul ecx, ecx, 0xb
imul eax, eax, 0x22
add eax, edx
mov edx, dword [eax - 0x13]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0xf]
mov dword [ebp - 0x60], edx
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x28], edx
mov dl, byte [eax + 2]
mov al, byte [eax]
mov byte [ebp - 0x3c], dl
mov edx, dword [ebp + 0x10]
add ecx, edx
mov dl, byte [ecx + 0xd4a]
mov cl, byte [ecx + 0xd55]
and dl, 0xf
and cl, 0xf
xor edi, edi
cmp dword [ebp + 0x1c], edi
mov byte [ebp - 0x13], dl
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], al
mov byte [ebp - 0x24], 0
jle 0x10046f58
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x28], eax
mov esi, 0xf000
push esi
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x10046faa
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x10046f93
push 0x100059c8
push edi
push 4
push eax
call fcn.10037a50
add esp, 0x10
jmp 0x10046f95
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], eax
push 0x1008bdb8
lea eax, [ebp - 0x50]
push eax
call fcn.1006330f
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], edi
inc eax
cdq
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
dec eax
je 0x10046ff0
dec eax
je 0x10046fe3
mov byte [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x990
jmp 0x10046ffb
mov byte [ebp - 0x38], 2
mov dword [ebp - 0x34], 0x940
jmp 0x10046ffb
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x930
mov eax, dword [ebx + 8]
mov dword [eax + 0x10], esi
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
xor edx, edx
mov ecx, 0x990
div ecx
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 0x1c], eax
jle 0x1004701f
mov dword [ebp - 0x1c], 1
cmp byte [ebp + 0x30], 1
jne 0x1004702c
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push 0xf000
xor edi, edi
xor esi, esi
push edi
push dword [ebp - 0x20]
inc esi
mov dword [ebp - 4], esi
mov byte [ebp + 0x2b], 1
call fcn.100620c0
add esp, 0xc
cmp byte [ebp - 0x24], 0
jne 0x100470d7
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x38]
push esi
push 3
push esi
push esi
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push edi
call fcn.1004122b
jmp 0x100470db
mov byte [ebp + 0x2b], 0
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x2b], 1
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 0x10]
mov byte [ebp + 0x27], 1
jne 0x10047124
cmp byte [ebp - 0x11], 0
jne 0x100472ea
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
dec eax
push dword [ebp - 0x3c]
mov ecx, ebx
push edi
je 0x1004711c
dec eax
je 0x10047115
call fcn.10046e93
mov byte [ebp + 0x27], al
jmp 0x1004712a
call fcn.10046e4c
jmp 0x10047110
call fcn.10046e05
mov byte [ebp + 0x27], al
cmp byte [ebp + 0x2b], 0
je 0x10047134
cmp byte [ebp + 0x27], 0
jne 0x100472ea
mov eax, dword [ebp + 0x20]
inc eax
cmp dword [ebp + 0x1c], eax
jge 0x10047232
cmp byte [ebp - 0x24], 0
jne 0x10047232
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x11fd4]
mov dword [ebp - 4], 3
push 0x14
call dword [ebx + 0x11fd0]
cmp byte [ebp + 0x27], 1
jne 0x10047173
mov ecx, dword [ebp + 0xc]
jmp 0x10047176
xor ecx, ecx
inc ecx
push dword [ebp + 0x30]
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x2c]
mov edx, dword [ebp - 0x1c]
lea edx, [edx + eax - 1]
push edx
push eax
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
inc eax
push eax
xor edi, edi
push edi
push dword [ebp + 0x14]
push esi
push ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.10046eda
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
add dword [ebp - 0x7c], eax
adc dword [ebp - 0x78], edi
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jg 0x100474d9
sub eax, dword [ebp - 0x18]
cmp eax, 0x96
jge 0x100471cf
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x18], edi
jbe 0x10047038
mov edx, dword [ebp + 0x18]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x30]
cmp ecx, edx
jbe 0x10047038
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebx + 0x11fd4]
push 0xb
call dword [ebx + 0x11fd0]
jmp 0x10047038
cmp byte [ebp + 0x2c], 0
jne 0x10047295
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x18]
cmp eax, 0xc8
jle 0x10047295
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x10047277
push dword [ebp - 0x18]
push 0x10005978
push 0
push 0xa
push eax
call fcn.10037a50
add esp, 0x14
mov esi, eax
jmp 0x10047279
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call fcn.1006213f
mov dword [ebp - 0x5c], esi
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0x5c]
jmp 0x10046fa4
cmp byte [ebp + 0x2b], 0
jne 0x100472d4
movzx eax, byte [ebp + 8]
imul eax, eax, 0x22
cmp byte [ebp - 0x24], 0
je 0x100472ae
mov al, byte [eax + esi + 0x24]
jmp 0x100472b3
movzx eax, byte [eax + esi + 2]
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
push dword [ebp - 0x18]
push edi
call fcn.1004691e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x11fd4]
push 0x12
jmp 0x100472e4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x11fd4]
push 0x13
call dword [ebx + 0x11fd0]
mov eax, dword [ebp + 0xc]
dec eax
push dword [ebp - 0x1c]
mov ecx, ebx
push edi
je 0x10047307
dec eax
je 0x10047300
call fcn.10046ced
jmp 0x1004730c
call fcn.10046c39
jmp 0x1004730c
call fcn.10046b8d
cmp byte [ebp - 0x24], 0
movzx eax, byte [ebp + 8]
je 0x1004731e
lea ecx, [eax + 1]
mov dword [ebp + 0x24], ecx
jmp 0x10047321
mov dword [ebp + 0x24], eax
cmp byte [ebp - 0x24], 0
mov cl, byte [ebp - 0x12]
jne 0x1004732d
mov cl, byte [ebp - 0x13]
cmp byte [ebp - 0x24], 0
mov byte [ebp - 0x48], cl
je 0x1004733e
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x18]
jmp 0x1004734a
mov ecx, dword [ebp - 0x18]
mov edx, eax
imul edx, edx, 0x22
sub ecx, dword [edx + esi - 0x13]
imul eax, eax, 0x22
push 0
push dword [ebp - 0x1c]
add esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi - 0x13]
push 1
push dword [ebp - 0x24]
sete dl
movzx edx, dl
push edx
push edi
push dword [ebp + 0x24]
push dword [ebp - 0x48]
push eax
push ecx
mov ecx, ebx
call fcn.10046a4f
push dword [ebp - 0x1c]
mov ecx, ebx
push edi
call fcn.10046dcb
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jne 0x10047397
cmp dword [ebp + 0x1c], 0
jne 0x10047397
push edi
mov ecx, ebx
call fcn.10045d14
mov edi, dword [ebp - 0x44]
imul edi, edi, 0x990
push 0
lea eax, [ebp - 0x40]
push eax
push edi
push dword [ebp - 0x4c]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004740e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x100473ee
push esi
push 0x10005928
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov esi, eax
jmp 0x100473f0
xor esi, esi
push dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0x64], esi
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0x64]
jmp 0x10046fa4
cmp dword [ebp - 0x40], edi
je 0x1004746c
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp + 8], eax
xor esi, esi
mov dword [ebp - 4], 7
cmp eax, esi
je 0x1004744e
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x990
push ecx
push dword [ebp - 0x40]
push 0x100058c8
push esi
push 0xa
push eax
call fcn.10037a50
add esp, 0x18
mov esi, eax
push dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0x68], esi
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0x68]
jmp 0x10046fa4
cmp byte [ebx + 0x11c76], 1
jne 0x100474c4
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp + 8], eax
xor esi, esi
mov dword [ebp - 4], 8
cmp eax, esi
je 0x100474a6
push dword [ebp - 0x18]
push 0x10005878
push esi
push 0xe
push eax
call fcn.10037a50
add esp, 0x14
mov esi, eax
push dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0x6c], esi
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0x6c]
jmp 0x10046fa4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x7c], eax
adc dword [ebp - 0x78], 0
add dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x28]
jle 0x100474f3
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x20]
call fcn.1006213f
pop ecx
call fcn.100630d0
ret 0x2c
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x18]
cmp ecx, 0x96
jge 0x10047536
mov esi, dword [esi - 0xc]
sub esi, dword [ebp - 0x18]
inc esi
cmp esi, eax
jae 0x10047536
mov ecx, dword [ebp - 0x28]
sub ecx, eax
inc ecx
cmp ecx, dword [ebp - 0x2c]
jge 0x10047522
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x44], eax
jmp 0x10047536
sub eax, esi
imul eax, eax, 0x990
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x18], 0
jbe 0x10047038
mov edx, dword [ebp + 0x18]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x30]
cmp ecx, edx
jbe 0x10047038
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebx + 0x11fd4]
push 0xb
call dword [ebx + 0x11fd0]
jmp 0x10047038