Function at 0x542070
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x648919
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x6bc858]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
push edi
mov eax, dword [0x6bc858]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], edi
cmp dword [0x6c4ee4], ebx
jne 0x5420da
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
push ebx
push ebx
push 0x7e8
call edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x542bb4
mov esi, dword [ebp + 8]
cmp dword [edi + 0x58], esi
je 0x542bb4
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x194]
call edx
mov eax, dword [edi + 0x54]
cmp esi, eax
jle 0x542108
cmp eax, ebx
je 0x542108
mov dword [edi + 0x58], eax
mov dword [ebp + 8], eax
mov esi, eax
jmp 0x54210b
mov dword [edi + 0x58], esi
imul esi, esi, 0x32
lea eax, [esi - 0x32]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.__InitPageData1__d__r_n
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], str.QueryPage.cpp
mov dword [esp + 0x30], 0x1df
call fcn.0041d7b0
add esp, 8
cmp dword [edi + 0x5c], 0x2721
mov dword [esp + 0x38], ebx
je 0x5421a9
push 0x38
call fcn.005f0fe0
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4a8], ebx
cmp eax, ebx
je 0x54216d
push eax
call fcn.004aee20
mov ebx, eax
jmp 0x54216f
xor ebx, ebx
sub esp, 0x20
lea eax, [edi + 0x16c]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
push ecx
mov dword [esp + 0x4d0], 0xffffffff
mov dword [esp + 0x60], ebx
call fcn.004121e0
mov edx, dword [esp + 0x3c]
mov ecx, dword [0x6c4ee4]
push esi
push edx
mov edx, ebx
call fcn.004a4120
jmp 0x5421b7
mov eax, dword [edi + 0x18c]
cmp eax, ebx
je 0x5421b7
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.__InitPageData1__d__r_n
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], str.QueryPage.cpp
mov dword [esp + 0x30], 0x1ee
call fcn.0041d7b0
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0xa6]
push ecx
mov word [esp + 0xa8], ax
call fcn.005ff630
add esp, 0x14
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x29e]
push eax
mov word [esp + 0x2a0], dx
call fcn.005ff630
add esp, 0xc
cmp dword [edi + 0x184], 0x10
jb 0x54222d
mov esi, dword [edi + 0x170]
jmp 0x542233
lea esi, [edi + 0x170]
lea ebx, [esp + 0x294]
call fcn.004d1650
mov ecx, ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
lea edx, [esp + 0x98]
push 0x697488
push edx
call ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xf4]
add esp, 0xc
lea edx, [esp + 0x94]
push edx
call eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x20]
push ecx
lea edx, [esp + 0x98]
push 0x69749c
push edx
call ebx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xf4]
add esp, 0xc
lea edx, [esp + 0x94]
push edx
call eax
mov ecx, dword [esi + 0x24]
push ecx
lea edx, [esp + 0x98]
push 0x6974a4
push edx
call ebx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0xf4]
add esp, 0xc
lea edx, [esp + 0x94]
push edx
call eax
mov ecx, dword [esi + 0x20]
mov edx, edi
call fcn.00542c10
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4a8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.__InitPageData__d__r_n
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], str.QueryPage.cpp
mov dword [esp + 0x30], 0x1fc
call fcn.0041d7b0
add esp, 8
lea ecx, [esp + 0x50]
lea edi, [esi + 0x28]
push ecx
push edi
mov dword [esp + 0x48], edi
call fcn.004c94d0
mov ebx, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 2
call fcn.004370d0
push 3
lea ecx, [esp + 0x20]
mov byte [esp + 0x4ac], 1
call fcn.00564140
lea ecx, [esp + 0x50]
mov byte [esp + 0x4a8], 3
call fcn.00413660
mov byte [esp + 0x4a8], 1
lea ecx, [esp + 0x1c]
call fcn.00564180
lea edx, [esp + 0x5c]
push edx
push edi
call fcn.00434830
mov esi, eax
lea edi, [esp + 0x2c]
mov byte [esp + 0x4a8], 5
call fcn.004476f0
test al, al
push 3
lea ecx, [esp + 0x20]
sete bl
mov byte [esp + 0x4ac], 1
call fcn.00564140
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a8], 6
call fcn.00413660
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a8], 1
call fcn.00564180
test bl, bl
je 0x542aea
lea esi, [esp + 0x2c]
call fcn.00447600
mov eax, dword [eax]
mov edi, 0x10
cmp dword [eax + 0x58], edi
jb 0x5423e8
mov esi, dword [eax + 0x44]
jmp 0x5423eb
lea esi, [eax + 0x44]
test esi, esi
je 0x542423
lea eax, [esp + 0x94]
test eax, eax
je 0x542423
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
test eax, eax
jle 0x542423
push eax
lea ecx, [esp + 0x98]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0xf4]
push 0xffffffffffffffff
lea edx, [esp + 0x98]
push edx
call eax
push 0x681d88
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], eax
call fcn.00412330
mov ebx, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 7
call fcn.00447600
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
cmp dword [eax + 0x18], edi
jb 0x542472
mov eax, dword [eax + 4]
jmp 0x542475
add eax, 4
push eax
mov eax, dword [ebx + 0x14]
mov edi, ecx
call fcn.004127d0
test eax, eax
sete byte [esp + 0x23]
cmp dword [esp + 0x8c], 0x10
jb 0x54249e
mov ecx, dword [esp + 0x78]
push ecx
call fcn.005f0cb0
add esp, 4
xor ebx, ebx
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x4a8], 8
cmp dword [esp + 0x74], ebx
je 0x5424fa
push 3
lea ecx, [esp + 0x50]
call fcn.00564140
mov eax, dword [esp + 0x74]
cmp dword [eax + 4], ebx
je 0x5424ea
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
cmp edx, ebx
jne 0x5424d8
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x4c]
mov dword [eax + 4], ebx
call fcn.00564180
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005f0cb0
add esp, 4
mov byte [esp + 0x4a8], 1
cmp byte [esp + 0x23], bl
je 0x542534
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x24]
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x10c]
push 7
push 1
push edx
call eax
jmp 0x542735
push 0x68ae04
lea ecx, [esp + 0x78]
call fcn.00412330
mov ebx, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 9
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
jb 0x542565
mov eax, dword [eax + 4]
jmp 0x542568
add eax, 4
push eax
mov eax, dword [ebx + 0x14]
call fcn.004127d0
test eax, eax
lea ecx, [esp + 0x74]
sete bl
mov byte [esp + 0x4a8], 1
call fcn.00412410
test bl, bl
je 0x5425aa
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x10c]
push 8
push 1
push eax
call edx
jmp 0x542735
push 0x68ae0c
lea ecx, [esp + 0x78]
call fcn.00412330
mov ebx, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 0xa
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
jb 0x5425db
mov eax, dword [eax + 4]
jmp 0x5425de
add eax, 4
push eax
mov eax, dword [ebx + 0x14]
call fcn.004127d0
test eax, eax
lea ecx, [esp + 0x74]
sete bl
mov byte [esp + 0x4a8], 1
call fcn.00412410
test bl, bl
je 0x542620
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x10c]
push 9
push 1
push eax
call edx
jmp 0x542735
push 0x68ae18
lea ecx, [esp + 0x78]
call fcn.00412330
mov ebx, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 0xb
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
jb 0x542651
mov eax, dword [eax + 4]
jmp 0x542654
add eax, 4
push eax
mov eax, dword [ebx + 0x14]
call fcn.004127d0
test eax, eax
lea ecx, [esp + 0x74]
sete bl
mov byte [esp + 0x4a8], 1
call fcn.00412410
test bl, bl
je 0x542696
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x10c]
push 0xa
push 1
push eax
call edx
jmp 0x542735
push 0x680910
lea ecx, [esp + 0x78]
call fcn.00412330
mov edi, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 0xc
call fcn.00447600
mov eax, dword [eax]
mov ecx, edi
call fcn.004134d0
lea ecx, [esp + 0x74]
mov bl, al
mov byte [esp + 0x4a8], 1
call fcn.00412410
test bl, bl
je 0x5426f3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x10c]
push 0xb
push 1
push eax
call edx
jmp 0x542735
lea esi, [esp + 0x2c]
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x18], 0x10
jb 0x542709
mov esi, dword [eax + 4]
jmp 0x54270c
lea esi, [eax + 4]
lea ebx, [esp + 0x94]
call fcn.004d1650
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x100]
push 0xffffffffffffffff
mov eax, ebx
push eax
mov eax, dword [esp + 0x20]
push 1
push eax
call edx
push 0x680910
lea ecx, [esp + 0x78]
call fcn.00412330
mov ebx, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x4a8], 0xd
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
jb 0x542766
mov eax, dword [eax + 4]
jmp 0x542769
add eax, 4
push eax
mov eax, dword [ebx + 0x14]
call fcn.004127d0
test eax, eax
sete bl
cmp dword [esp + 0x8c], 0x10
jb 0x54278e
mov eax, dword [esp + 0x78]
push eax
call fcn.005f0cb0
add esp, 4
xor esi, esi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], esi
mov byte [esp + 0x78], 0
mov byte [esp + 0x4a8], 0xe
cmp dword [esp + 0x74], esi
je 0x5427f2
push 3
lea ecx, [esp + 0x4c]
call fcn.00564140
mov eax, dword [esp + 0x74]
cmp dword [eax + 4], esi
je 0x5427e2
lea esp, [esp]
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, esi
jne 0x5427d0
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x48]
mov dword [edx + 4], esi
call fcn.00564180
mov eax, dword [esp + 0x74]
push eax
call fcn.005f0cb0
add esp, 4
mov byte [esp + 0x4a8], 1
lea esi, [esp + 0x2c]
test bl, bl
je 0x542851
lea ecx, [esp + 0x94]
push ecx
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x38], 0x10
jb 0x542829
mov eax, dword [eax + 0x24]
jmp 0x54282c
add eax, 0x24
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00412330
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x5428aa
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x38], 0x10
jb 0x542863
mov esi, dword [eax + 0x24]
jmp 0x542866
lea esi, [eax + 0x24]
test esi, esi
je 0x5428a0
lea ecx, [esp + 0x94]
test ecx, ecx
je 0x5428a0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
test eax, eax
jle 0x5428a6
push eax
lea edx, [esp + 0x98]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
jmp 0x5428a6
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
push 0xffffffffffffffff
lea edx, [esp + 0x98]
push edx
mov edx, dword [esp + 0x20]
push 2
push edx
call eax
lea esi, [esp + 0x2c]
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0xb8], 0x10
jb 0x5428e4
mov esi, dword [eax + 0xa4]
jmp 0x5428ea
lea esi, [eax + 0xa4]
test esi, esi
je 0x54291c
lea ecx, [esp + 0x94]
test ecx, ecx
je 0x54291c
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
test eax, eax
jle 0x54291c
push eax
lea edx, [esp + 0x98]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
push 0xffffffffffffffff
lea edx, [esp + 0x98]
push edx
mov edx, dword [esp + 0x20]
push 4
push edx
call eax
push 0
lea ecx, [esp + 0x98]
push ecx
lea esi, [esp + 0x34]
call fcn.00447600
mov edi, dword [eax]
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x4c], esp
sub edi, 0xffffff80
mov dword [esp + 0x4c], esi
mov dword [esi], 0
push 8
mov byte [esp + 0x4d4], 0xf
call fcn.005f0fe0
add esp, 4
test eax, eax
je 0x542bda
mov dword [esi], eax
xor edx, edx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esi]
mov dword [edx], esi
mov byte [esp + 0x4d0], 0x10
push 0xffffffffffffffff
mov dword [esi + 0x14], ecx
push ecx
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], cl
push edi
mov ecx, esi
call fcn.004126e0
mov byte [esp + 0x4d0], 1
mov ecx, dword [ebx + 0x64]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
push 0xffffffffffffffff
lea edx, [esp + 0x98]
push edx
mov edx, dword [esp + 0x20]
push 3
push edx
call eax
lea esi, [esp + 0x2c]
call fcn.00447600
mov eax, dword [eax]
cmp dword [eax + 0x78], 0x10
jb 0x5429f4
mov esi, dword [eax + 0x64]
jmp 0x5429f7
lea esi, [eax + 0x64]
test esi, esi
je 0x542a2f
lea ecx, [esp + 0x94]
test ecx, ecx
je 0x542a2f
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
test eax, eax
jle 0x542a2f
push eax
lea edx, [esp + 0x98]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
push 0xffffffffffffffff
lea edx, [esp + 0x98]
push edx
mov edx, dword [esp + 0x20]
push 5
push edx
call eax
lea ecx, [esp + 0x68]
push ecx
lea ebx, [esp + 0x30]
call fcn.004474c0
push 3
lea ecx, [esp + 0x48]
call fcn.00564140
lea ecx, [esp + 0x68]
mov byte [esp + 0x4a8], 4
call fcn.00413660
lea ecx, [esp + 0x44]
mov byte [esp + 0x4a8], 1
call fcn.00564180
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.00434830
mov esi, eax
mov edi, ebx
mov byte [esp + 0x4a8], 5
call fcn.004476f0
test al, al
push 3
lea ecx, [esp + 0x20]
sete bl
mov byte [esp + 0x4ac], 1
call fcn.00564140
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4a8], 6
call fcn.00413660
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a8], 1
call fcn.00564180
test bl, bl
jne 0x5423ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.__InitPageData__d__r_n
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], str.QueryPage.cpp
mov dword [esp + 0x30], 0x22f
call fcn.0041d7b0
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xa0]
push 0x675d5c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
add esp, 0x14
lea eax, [esp + 0x94]
push eax
call edx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x80]
push 0
call edx
mov edi, dword [esp + 0x38]
cmp edi, dword [esi + 0x18c]
je 0x542b6c
push edi
call fcn.004aef10
push edi
call fcn.005f0cb0
add esp, 4
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x80]
push 0
call edx
or esi, 0xffffffff
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x4ac], esi
call fcn.00564140
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4a8], 0x11
call fcn.00413660
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4a8], esi
call fcn.00564180
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x68], 0
call fcn.005f41f0
push 0x6a361c
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], vtable.std::bad_alloc.0
call fcn.006009e0
int3