Function at 0x4051d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4699b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1068
call fcn.0043e5d0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], edi
push 0x5c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.004594c3
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.0045944b
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push edx
mov byte [ebp - 4], 2
call fcn.0045b31f
call fcn.00405ab0
add esp, 4
test eax, eax
jne 0x40525e
lea eax, [ebp - 0x1c]
push 0x48855c
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.0045b83f
mov eax, dword [eax]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
lea ecx, [ebp - 0x14]
call fcn.0045b5aa
push 0x2f
lea ecx, [ebp + 8]
call fcn.004594c3
push 0x48edd8
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0045b618
test esi, esi
mov byte [ebp - 4], 3
jl 0x4052ce
inc esi
lea edx, [ebp - 0x14]
push esi
push edx
lea ecx, [ebp + 8]
call fcn.0045944b
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0045b6e3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0045b5aa
lea eax, [ebp - 0x14]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.00459316
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0045b6e3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0045b5aa
jmp 0x4052db
push 0x488558
lea ecx, [ebp - 0x18]
call fcn.0045b733
mov eax, dword [edi + 0xa70]
mov ecx, dword [edi + 0xa74]
push eax
push ecx
call fcn.0043e4c5
add esp, 8
test eax, eax
jne 0x40530c
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0xa78]
push ecx
push eax
call fcn.0043e4c5
add esp, 8
test eax, eax
je 0x405344
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + 0xa6c]
push edx
call fcn.0046538e
test eax, eax
jne 0x405344
push ecx
lea ecx, [ebp - 0x18]
mov eax, esp
mov dword [ebp + 0x14], esp
push ecx
push 0x488530
push eax
call fcn.0045b8b3
mov ecx, dword [edi + 0xa48]
call fcn.0041d780
jmp 0x4059e2
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov dword [ebp - 0x2c], ebx
jne 0x4053c6
mov edx, dword [edi + 0xa6c]
push 1
push edx
lea ecx, [ebp - 0x78]
call fcn.0046545b
mov eax, dword [ebp + 8]
push 0x20000000
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004654b0
test eax, eax
je 0x40538f
lea ecx, [ebp - 0x78]
call fcn.00465602
lea ecx, [ebp - 0x78]
call fcn.00436730
mov dword [ebp - 0x2c], eax
mov ebx, eax
jmp 0x4053b0
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push 0x488514
call fcn.0045b618
mov ecx, dword [0x48ede0]
mov ecx, dword [ecx + 0xa48]
call fcn.0041d780
lea ecx, [ebp - 0x78]
call fcn.0043626f
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.004654a5
test ebx, ebx
jbe 0x4054fc
mov edx, dword [ebp + 0x14]
lea esi, [edi + 0x120]
push 0
lea eax, [ebp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00459e66
lea ecx, [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.0045944b
mov eax, dword [eax]
push 0x48847c
push eax
call fcn.0043e4c5
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
setne bl
call fcn.0045b5aa
test bl, bl
je 0x4054e5
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edx
mov eax, dword [0x48a8c4]
fild qword [ebp - 0x24]
mov dword [ebp - 0x30], eax
fmul qword [0x470a88]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fcomp qword [0x470a80]
mov byte [ebp - 4], 8
fnstsw ax
test ah, 0x41
jne 0x405465
fld qword [ebp - 0x24]
fmul qword [0x470a88]
sub esp, 8
fstp qword [esp]
push str._.1fMB
jmp 0x405472
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push edx
push eax
push str._.1fKB
lea ecx, [ebp - 0x30]
push ecx
call fcn.0045986b
add esp, 0x10
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x38]
push edx
push 0x488468
push eax
call fcn.0045b8b3
push 0x488464
lea ecx, [ebp - 0x4c]
mov bl, 9
push eax
push ecx
mov byte [ebp - 4], bl
call fcn.0045b83f
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xa
call fcn.0045b9c2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0045b5aa
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0045b5aa
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push edx
push 0
push eax
mov ecx, esi
call fcn.004293e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.0045b5aa
lea ecx, [ebp + 0x10]
call fcn.0045b535
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0045b5aa
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [0x48ede0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov edx, dword [ecx + 0x2a8]
push 0x402
push edx
call esi
test ebx, ebx
je 0x4055aa
push ebx
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0045b31f
call fcn.00404740
add esp, 8
test eax, eax
je 0x4055aa
mov ecx, dword [edi + 0x2a8]
push 0
push 0x64
push 0x402
push ecx
call esi
mov edx, dword [ebp + 0x14]
push 0x64
push 1
push edx
lea ecx, [edi + 0x120]
call fcn.004295c0
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push 0x488440
call fcn.0045b618
mov eax, dword [0x48ede0]
mov ecx, dword [eax + 0xa48]
call fcn.0041d780
mov eax, dword [0x48ede0]
mov ecx, dword [eax + 0xa84]
test ecx, ecx
je 0x405a5d
mov eax, dword [eax + 0xa80]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x405a5d
mov ecx, dword [ebp + 8]
push 1
push 2
push SysReAllocStringLen
push ecx
mov ecx, dword [edi + 0xa6c]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xb
call fcn.004653e0
mov dword [ebp - 0x14], eax
jmp 0x4055db
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test eax, eax
jne 0x405651
push ecx
lea eax, [ebp + 8]
mov edx, esp
mov dword [ebp + 0x14], esp
push eax
push 0x4884f0
push edx
call fcn.0045b8b3
mov ecx, dword [edi + 0xa48]
call fcn.0041d780
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0045b5aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0045b5aa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0045b5aa
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b5aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x48]
call fcn.004603dc
mov ecx, dword [ebp + 0xc]
push 0
push 0x9001
push ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.004604ee
test eax, eax
jne 0x4056e8
push ecx
lea eax, [ebp + 0xc]
mov edx, esp
mov dword [ebp + 0x14], esp
push eax
push 0x4884d4
push edx
call fcn.0045b8b3
mov ecx, dword [edi + 0xa48]
call fcn.0041d780
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00460431
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0045b5aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0045b5aa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0045b5aa
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b5aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x48ede0]
mov eax, dword [ecx + 0xa98]
mov edi, dword [ecx + 0xa90]
lea esi, [ecx + 0xa88]
test eax, eax
jne 0x405731
mov edx, dword [esi + 0x18]
push 0xc
lea eax, [esi + 0x14]
push edx
push eax
call fcn.0045a452
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x405731
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x405723
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
mov dword [esi + 0xc], edi
mov dword [eax + 8], 0
mov dword [eax + 8], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x405761
mov dword [ecx], eax
jmp 0x405764
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [0x48a8c4]
xor edi, edi
mov dword [ebp - 0x28], eax
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x48ee08
mov byte [ebp - 4], 0xe
call ebx
mov ecx, dword [0x48ee08]
mov edx, dword [0x48ee0c]
mov eax, dword [0x48ede0]
mov dword [0x48ee00], ecx
mov dword [0x48ee04], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa60]
test edx, edx
jne 0x4058da
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1078]
push 0x1000
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov esi, eax
lea ecx, [ebp - 0x1078]
push esi
push ecx
lea ecx, [ebp - 0x48]
call fcn.00460645
push 0x48ee08
add edi, esi
call ebx
mov eax, dword [0x48ee08]
mov edx, dword [0x48ee00]
mov ecx, dword [0x48ee0c]
mov dword [0x48edf8], eax
sub eax, edx
mov edx, dword [0x48ee04]
mov dword [0x48edfc], ecx
mov dword [0x48edf0], eax
sbb ecx, edx
mov dword [0x48edf4], ecx
js 0x405888
jg 0x405818
test eax, eax
jbe 0x405888
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 0
fild qword [ebp - 0x54]
fild qword [0x48edf0]
fmul qword [0x48ede8]
fmul qword [0x470a80]
fdivp st(1)
fst qword [ebp - 0x24]
fcomp qword [0x470a78]
fnstsw ax
test ah, 0x41
jne 0x405888
fld qword [ebp - 0x24]
fcomp qword [0x470a80]
fnstsw ax
test ah, 0x41
jne 0x40586f
fld qword [ebp - 0x24]
fmul qword [0x470a88]
sub esp, 8
fstp qword [esp]
push str._.1fMB_s
jmp 0x40587c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
push str._.1fKB_s
lea edx, [ebp - 0x28]
push edx
call fcn.0045986b
add esp, 0x10
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x28]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call fcn.0045b31f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x48ede0]
push eax
push edi
call fcn.00404dd0
mov eax, dword [0x48ede0]
mov ecx, dword [eax + 0xa84]
test ecx, ecx
je 0x4058ce
mov eax, dword [eax + 0xa80]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x48ede0]
cmp esi, 0x1000
je 0x40579f
mov edi, dword [eax + 0xa94]
xor ecx, ecx
test edi, edi
jle 0x405979
lea esi, [eax + 0xa88]
cmp ecx, dword [esi + 0xc]
jge 0x405907
test ecx, ecx
jl 0x405907
mov eax, dword [esi + 4]
je 0x405909
mov edx, ecx
mov eax, dword [eax]
dec edx
jne 0x405900
jmp 0x405909
xor eax, eax
mov edx, dword [eax + 8]
lea ebx, [ebp - 0x48]
cmp ebx, edx
je 0x40591a
inc ecx
cmp ecx, edi
jl 0x4058f0
jmp 0x405979
cmp eax, dword [esi + 4]
jne 0x405926
mov ecx, dword [eax]
mov dword [esi + 4], ecx
jmp 0x40592d
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
cmp eax, dword [esi + 8]
jne 0x40593a
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
jmp 0x405942
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
jne 0x405979
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x405962
mov eax, dword [eax]
cmp eax, edi
jne 0x40595c
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.0045a472
mov dword [esi + 0x14], edi
lea ecx, [ebp - 0x48]
call fcn.00460709
lea ecx, [ebp - 0x28]
call fcn.0045b535
mov esi, dword [ebp - 0x34]
lea edx, [esi + 0xa70]
lea ecx, [esi + 0xa74]
push edx
call fcn.0045b6e3
lea eax, [ebp - 0x18]
lea ecx, [esi + 0xa78]
push eax
call fcn.0045b6e3
mov edi, dword [ebp - 0x14]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x4c]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0xa60]
test eax, eax
je 0x405a2a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.0045b5aa
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00460431
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0045b5aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0045b5aa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0045b5aa
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b5aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push 0x488424
call fcn.0045b618
mov ecx, dword [0x48ede0]
call fcn.0040c270
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.0045b5aa
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00460431
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0045b5aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0045b5aa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0045b5aa
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b5aa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10