Function at 0x1000a630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x1005f00c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, ecx
push 0
push 1
mov eax, dword [edi]
call dword [eax + 4]
test eax, eax
je 0x1000ad5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], ebx
call ebx
mov ecx, dword [edi + 0x2468]
mov edx, 0xa
cmp ecx, edx
mov dword [esp + 0x24], eax
mov dword [edi + 0x26ac], eax
mov dword [edi + 0x26cc], eax
cmovb edx, ecx
lea eax, [edi + 0x62cb8]
mov dword [edi + 0x2468], edx
push eax
call fcn.10034ca1
add esp, 4
mov ecx, edi
push 0
call fcn.1000a460
test eax, eax
je 0x1000ad5f
mov eax, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
movsd xmm0, qword [0x10058838]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esp + 0x20], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.WININET.dll_InternetWriteFile]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.WININET.dll_InternetReadFileExA]
mov dword [esp + 0x38], eax
mov eax, dword [sym.imp.WININET.dll_InternetReadFile]
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x3c], eax
jmp 0x1000a714
mov dword [esi + 0x18], eax
mov ebx, dword [esp + 0xc]
cmp dword [edi + 0x5d0f8], 7
je 0x1000a73a
cmp dword [edi + 0x26a8], 0
je 0x1000a73a
call ebx
sub eax, dword [edi + 0x26ac]
cmp eax, dword [edi + 0x26a8]
ja 0x1000ad12
mov eax, dword [edi + 0x2464]
xorps xmm0, xmm0
movlpd qword [esp + 0x5c], xmm0
xor edx, edx
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x58], eax
nop word [eax + eax]
mov ecx, dword [edi + 0x26dc]
mov eax, 0xb
mov esi, dword [edi + 0x26d8]
sub ecx, esi
sar ecx, 2
cmp ecx, eax
cmovb eax, ecx
cmp edx, eax
jae 0x1000a7a3
mov ecx, dword [esi + edx*4]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1000a79c
mov eax, dword [ecx + 0xc]
mov dword [esp + edx*4 + 0x5c], eax
inc edx
jmp 0x1000a770
inc edx
cmp edx, 1
jbe 0x1000ad2e
push 0x1f4
push 0
lea eax, [esp + 0x60]
push eax
push edx
call dword [esp + 0x3c]
mov ebx, eax
call dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x10], eax
sub ecx, dword [esp + 0x24]
cmp ecx, 0x1f4
jb 0x1000a8ad
mov eax, dword [edi + 0x26b8]
lea esi, [edi + 0x26b4]
mov edx, dword [edi + 0x26c0]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
cmp dword [esi + 8], eax
je 0x1000a804
mov dword [eax], edx
mov dword [eax + 4], ecx
add dword [esi + 4], 8
jmp 0x1000a811
lea ecx, [esp + 0x40]
push ecx
push eax
mov ecx, esi
call fcn.1000db00
mov edx, dword [esi + 4]
mov eax, edx
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
cmp eax, 6
jbe 0x1000a841
lea eax, [ecx + 8]
sub edx, eax
push edx
push eax
push ecx
call fcn.1002eb40
add esp, 0xc
add dword [edi + 0x26b8], 0xfffffff8
mov edx, dword [edi + 0x26b8]
mov ecx, dword [esi]
sub edx, ecx
and edx, 0xfffffff8
cmp edx, 0x30
jne 0x1000a89b
xor edx, edx
xor esi, esi
xor eax, eax
add edx, dword [ecx + eax*8 + 4]
add esi, dword [ecx + eax*8]
inc eax
cmp eax, 6
jb 0x1000a851
movd xmm0, esi
movd xmm1, edx
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [esi*8 + 0x10058870]
addsd xmm1, qword [edx*8 + 0x10058870]
divsd xmm0, xmm1
mulsd xmm0, qword [esp + 0x50]
call fcn.10048211
mov dword [edi + 0x26b0], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [edi + 0x26c0], 0
lea eax, [esp + 0x48]
push eax
call fcn.10034ca1
mov ecx, dword [esp + 0x4c]
add esp, 4
sub ecx, dword [edi + 0x62cb8]
mov eax, dword [esp + 0x4c]
sbb eax, dword [edi + 0x62cbc]
mov esi, dword [edi + 0x26b0]
mov dword [edi + 0x62cc0], ecx
mov dword [edi + 0x62cc4], eax
test esi, esi
je 0x1000a911
mov ecx, dword [edi + 0x5d100]
mov eax, ecx
mov edx, dword [edi + 0x5d104]
and eax, edx
cmp eax, 0xffffffff
je 0x1000a911
sub ecx, dword [edi + 0x5d110]
push 0
sbb edx, dword [edi + 0x5d114]
push esi
push edx
push ecx
call fcn.10047fc0
jmp 0x1000a922
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edi + 0x62cc8], eax
mov dword [edi + 0x62ccc], edx
cmp ebx, 0xffffffff
je case.default.0x1000a9d3
cmp ebx, 0x102
jne 0x1000a991
cmp dword [edi + 0x246c], 6
mov ebx, dword [esp + 0xc]
jne 0x1000a714
call ebx
mov ecx, eax
sub ecx, dword [edi + 0x26a4]
cmp ecx, 0x3e8
jbe 0x1000a714
mov dword [edi + 0x26a4], eax
mov ecx, edi
mov eax, dword [edi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x1000a714
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100170ad
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1000ad09
mov eax, dword [edi + 0x26d8]
dec ebx
mov esi, dword [eax + ebx*4]
call dword [esp + 0xc]
mov dword [edi + 0x26c4], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000a9c7
push eax
call dword [esp + 0x34]
push dword [esi + 0x10]
call dword [esp + 0x38]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x28]
cmp eax, 0xa
ja case.default.0x1000a9d3
jmp dword [eax*4 + 0x1000ad74]
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
push dword [esi + 0xc]
mov dword [esi + 0x28], 1
call dword [esp + 0x24]
cmp dword [esi + 0x24], 0
jne 0x1000aa00
lea eax, [edi + 0x5f5c0]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x20]
mov ecx, edi
push esi
cmp dword [eax + 4], 1
je 0x1000aa13
call fcn.1000c250
jmp 0x1000aa18
call fcn.1000c060
test eax, eax
je 0x1000aa28
push dword [esi + 0xc]
call dword [esp + 0x1c]
jmp 0x1000a710
call dword [esp + 0x1c]
cmp eax, 0x3e5
je 0x1000a710
push ebx
mov ecx, edi
call fcn.1000bf30
jmp case.default.0x1000a9d3
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], 1
je 0x1000aab9
cmp dword [edi + 0x2480], 0
mov ebx, dword [esp + 0xc]
je 0x1000a714
push dword [esi + 0xc]
mov dword [esp + 0x14], 0
call dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [esp + 0x38]
test eax, eax
je 0x1000aaa5
push dword [esi + 0xc]
call dword [esp + 0x1c]
jmp 0x1000a714
call dword [esp + 0x1c]
cmp eax, 0x3e5
jne case.default.0x1000a9d3
jmp 0x1000a714
cmp dword [esi], 0
jne 0x1000aac9
mov eax, dword [esi + 4]
test eax, eax
jne 0x1000a70d
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.1000c430
test eax, eax
je case.default.0x1000a9d3
jmp 0x1000a710
push ebx
mov ecx, edi
call fcn.1000ada0
jmp 0x1000ad00
push ebx
mov ecx, edi
call fcn.1000aeb0
jmp 0x1000ad00
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
push dword [esi + 0xc]
mov dword [esi + 0x28], 5
call dword [esp + 0x24]
mov eax, dword [esi + 0x8040]
cmp dword [eax + 4], 0
jne 0x1000ab6f
jmp 0x1000aa00
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
jne 0x1000aa5d
cmp dword [esi], 0
jne 0x1000ab56
mov eax, dword [esi + 4]
test eax, eax
jne 0x1000a70d
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.1000c430
test eax, eax
jne 0x1000a710
push ebx
mov ecx, edi
call fcn.1000bf30
jmp 0x1000a710
push ebx
mov ecx, edi
call fcn.1000b730
jmp 0x1000ad00
push ebx
mov ecx, edi
call fcn.1000b840
jmp 0x1000ad00
mov eax, dword [edi + 0x26d8]
push 0x8000
push 0
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x18], eax
mov dword [eax + 0x8048], 0
lea esi, [eax + 0x40]
mov dword [eax + 0x804c], 0
mov dword [eax + 0x8050], 0
mov dword [eax + 0x8054], 0
mov dword [eax + 0x8060], 0
mov dword [eax + 0x8064], 0
mov dword [eax + 0x8068], 0
push esi
mov dword [eax + 0x8044], 0x28
call fcn.1002f0c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x8058], esi
mov esi, eax
mov edx, dword [esi + 0x8040]
mov dword [esi + 0x805c], 0x8000
test edx, edx
je 0x1000ac60
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x14]
sbb ecx, dword [edx + 0x1c]
sub eax, dword [edx + 8]
sbb ecx, dword [edx + 0xc]
add eax, 1
adc ecx, 0
test ecx, ecx
jb 0x1000ac5a
ja 0x1000ac4b
cmp eax, 0x8000
jbe 0x1000ac5a
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x1000aca1
mov dword [esp + 0x14], ecx
jmp 0x1000aca1
mov eax, dword [edi + 0x5d100]
mov ecx, dword [edi + 0x5d104]
cmp eax, 0xffffffff
jne 0x1000ac75
cmp ecx, eax
je 0x1000aca7
sub eax, dword [edi + 0x5d110]
sbb ecx, dword [edi + 0x5d114]
test ecx, ecx
jb 0x1000ac9d
ja 0x1000ac8e
cmp eax, 0x8000
jbe 0x1000ac9d
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x1000aca1
mov dword [esp + 0x14], ecx
mov dword [esi + 0x805c], eax
push dword [esi + 0xc]
call dword [esp + 0x24]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x28], 9
cmp dword [eax + 4], 1
je 0x1000acd5
push esi
push 1
lea eax, [esi + 0x8044]
push eax
push ecx
call dword [esp + 0x48]
jmp 0x1000aa18
lea eax, [esi + 0x805c]
push eax
push dword [eax]
push dword [esi + 0x8058]
push ecx
call dword [esp + 0x4c]
jmp 0x1000aa18
push ebx
mov ecx, edi
call fcn.1000ba70
jmp 0x1000ad00
push ebx
mov ecx, edi
call fcn.1000bd20
test eax, eax
je case.default.0x1000a9d3
jmp 0x1000a710
cmp dword [edi + 0x5d0f8], 7
je 0x1000ad5f
mov dword [edi + 0x5d0f8], 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100170ad
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x26f0], 0
je 0x1000ad5f
mov eax, dword [edi + 0x5d114]
cmp eax, dword [edi + 0x5d104]
ja 0x1000ad5f
jb case.default.0x1000a9d3
mov eax, dword [edi + 0x5d110]
cmp eax, dword [edi + 0x5d100]
jae 0x1000ad5f
mov dword [edi + 0x5d0f8], 8
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100170ad
mov esp, ebp
pop ebp
ret