Function at 0x522ec8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x522ed0
push ecx
push ebx
push esi
push edi
mov eax, 0x5227c8
call fcn.004079dc
xor eax, eax
push ebp
push 0x523a7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x522528
call fcn.00411994
mov eax, dword [0x52bdf8]
mov byte [eax], 0
call fcn.00403418
call sub.comctl32.dll_InitCommonControls
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046c2ec
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov edx, 0x523a98
call fcn.0046bed4
mov ecx, dword [0x52bdc4]
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov edx, dword [0x521684]
call fcn.0046c304
mov dl, 1
mov eax, dword [0x41d080]
call fcn.00404608
mov dword [0x5542c8], eax
call fcn.00521e78
call fcn.00522024
call fcn.00522104
mov byte [0x5542d8], 0
mov eax, 0x5542b4
call fcn.00405488
mov eax, 0x5542ac
call fcn.00405488
call fcn.005226fc
cmp dword [0x5542b4], 0
jne 0x522fea
call fcn.005223e8
mov byte [0x5542d8], al
cmp byte [0x5542d8], 0
je 0x522fbe
lea edx, [ebp - 0x14]
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046ca44
mov edx, dword [ebp - 0x14]
mov eax, 0x5542b4
call fcn.004054dc
jmp 0x522fea
lea edx, [ebp - 0x1c]
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046ca44
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov edx, 0x523ab0
call fcn.0040cdd8
mov edx, dword [ebp - 0x18]
mov eax, 0x5542b4
call fcn.004054dc
mov eax, dword [0x5542b4]
call fcn.0040cc08
test al, al
je 0x5233ab
xor ebx, ebx
xor eax, eax
push ebp
push 0x52306f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5542d8], 0
je 0x52304c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x5542b4]
call fcn.00405958
push eax
call sub.kernel32.dll_CreateFileA_1
mov ecx, eax
mov dl, 1
mov eax, dword [0x41d280]
call fcn.00421550
mov dword [0x5542b8], eax
jmp 0x523065
push 0
mov ecx, dword [0x5542b4]
mov dl, 1
mov eax, dword [0x41d280]
call fcn.00421614
mov dword [0x5542b8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52307b
test bl, bl
jne 0x52333a
xor edx, edx
push ebp
push 0x523333
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x5542d8], 0
je 0x5230ac
xor ecx, ecx
mov edx, dword [0x5542dc]
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x5542bc
mov ecx, 0xb
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, 0x523ab8
mov eax, 0x5542bc
call fcn.0040d154
test eax, eax
jne 0x52331b
xor edx, edx
push ebp
push 0x5232ed
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x5542d0
mov ecx, 2
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ax, word [0x5542d0]
cmp ax, word [0x52b99c]
jne 0x52311d
mov cx, 1
mov edx, 0x10
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x523130
mov cx, 1
mov edx, 0xfffffffe
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x5542e0
mov ecx, 4
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x5542e0]
cmp eax, dword [0x52b9a0]
jne 0x523232
mov edx, 0x5542e4
mov ecx, 4
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dl, 1
mov eax, dword [0x41d370]
call fcn.00404608
mov dword [0x5542e8], eax
xor eax, eax
push ebp
push 0x52322b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5542e4]
xor edx, edx
push edx
push eax
mov edx, dword [0x5542b8]
mov eax, dword [0x5542e8]
call fcn.00421398
push 0
push 0
mov eax, dword [0x5542e8]
call fcn.0042111c
mov ecx, dword [0x5542e8]
mov dl, 1
mov eax, dword [0x5111c4]
call fcn.005114ac
mov dword [0x5542f0], eax
xor eax, eax
push ebp
push 0x52320c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
xor edx, edx
call fcn.0044c304
mov edx, dword [0x52bdc4]
mov edx, dword [edx]
mov eax, dword [0x5542f0]
call fcn.0042148c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523213
mov eax, dword [0x5542f0]
call fcn.00404638
ret
mov cx, 1
mov edx, 0xfffffffc
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
xor edx, edx
call fcn.0044c304
mov edx, dword [0x52bdc4]
mov edx, dword [edx]
mov eax, dword [0x5542b8]
call fcn.0042148c
mov eax, dword [0x5542b8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [0x5542b8]
call fcn.004210fc
cmp edx, dword [esp + 4]
jne 0x523289
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5232e3
jmp 0x52328d
pop edx
pop eax
jge 0x5232e3
mov edx, 0x5542cc
mov ecx, 4
mov eax, dword [0x5542b8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ax, word [0x5542cc]
test ax, ax
jbe 0x5232bb
movzx edx, ax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.00465770
mov eax, dword [0x5542cc]
call fcn.00408864
test ax, ax
jbe 0x5232e3
mov eax, dword [0x5542cc]
call fcn.00408864
movzx edx, ax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.004657a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52331b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52333a
mov eax, dword [0x5542b8]
call fcn.00404638
ret
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x304]
call fcn.004abd5c
test al, al
je 0x52338a
mov ecx, 0x523ac4
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x240]
mov edx, 0x523ad4
call fcn.004f56c8
mov ecx, 0x523ac4
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov edx, 0x523ad4
call fcn.004f56c8
jmp 0x5233e3
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov edx, dword [eax + 0x98]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x304]
call fcn.004abf6c
jmp 0x5233e3
mov ecx, 0x523ac4
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x240]
mov edx, 0x523ad4
call fcn.004f56c8
mov ecx, 0x523ac4
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov edx, 0x523ad4
call fcn.004f56c8
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3a9], 0
je 0x52344b
push 0xffffffffffffffec
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov ebx, dword [eax + 0x30]
push ebx
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x52bf8c]
push ebx
call sub.user32.dll_SetWindowLongA
push 0
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov dl, byte [0x523adc]
not edx
and dl, byte [eax + 0x228]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.00466124
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.00521980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3ec], 0
je 0x52347f
call fcn.004f55d0
test al, al
jne 0x52347f
call fcn.005222fc
call fcn.005223c0
jmp 0x523a42
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3ac], 0
je 0x523638
call fcn.0040e40c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x523ae8
call fcn.0040f0b4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
push dword [eax + 0x3b4]
push dword [eax + 0x3b0]
lea edx, [ebp - 0x24]
mov eax, 0x523ae8
call fcn.0040f0b4
mov edx, dword [ebp - 0x24]
pop eax
call fcn.004058a4
jb 0x523638
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00510d24
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x28]
call fcn.00510cb0
mov edx, dword [ebp - 0x28]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c8]
call fcn.004058a4
je 0x523619
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3bc], 0
je 0x52352f
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp dword [eax + 0x3c0], 0
jne 0x523539
call fcn.005223c0
jmp 0x523a42
lea edx, [ebp - 0x40]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.004f02d4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x38]
call fcn.00510d24
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x3c]
call fcn.00510cb0
mov eax, dword [ebp - 0x3c]
mov edx, dword [0x52bdc4]
mov edx, dword [edx]
mov edx, dword [edx + 0x3c8]
call fcn.004058a4
je 0x523638
call fcn.005221d0
mov bl, 1
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
jmp 0x5235d9
lea edx, [ebp - 0x38]
mov eax, dword [0x5542d4]
call fcn.00510d24
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x44]
call fcn.00510cb0
mov eax, dword [ebp - 0x44]
mov edx, dword [0x52bdc4]
mov edx, dword [edx]
mov edx, dword [edx + 0x3c8]
call fcn.004058a4
jne 0x5235d9
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [0x5542d4]
call fcn.004f0374
xor ebx, ebx
jmp 0x52360b
push 1
lea edx, [ebp - 0x48]
mov eax, 0x521cd0
call fcn.00407724
mov eax, dword [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, 0x521cc8
call fcn.00407724
mov eax, dword [ebp - 0x4c]
mov ecx, 0x5542d4
pop edx
call fcn.00510fa4
test al, al
jne 0x523593
test bl, bl
je 0x523638
call fcn.005223c0
jmp 0x523a42
call fcn.005221d0
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3bc], 0
jne 0x523638
call fcn.005223c0
jmp 0x523a42
mov byte [0x5542ec], 0
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.0044f7ec
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x52367f
inc ebx
xor esi, esi
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, esi
call fcn.0044f7b0
mov edx, dword [0x4d9c1c]
call fcn.004047d0
test al, al
je 0x52367b
mov byte [0x5542ec], 1
jmp 0x52367f
inc esi
dec ebx
jne 0x523655
cmp byte [0x5542ec], 0
je 0x5236b8
mov eax, dword [0x52be50]
cmp dword [eax], 0
jne 0x5236b8
push 0x30
lea edx, [ebp - 0x50]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.0044c2d4
mov eax, dword [ebp - 0x50]
call fcn.00405958
push eax
push 0x523af4
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
xor edx, edx
call fcn.004ef994
cmp dword [0x5542ac], 0
jne 0x5236ed
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [eax + 0x334]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.004ef918
jmp 0x52378b
mov byte [0x5542b0], 0
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x368]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x523769
inc ebx
xor esi, esi
lea ecx, [ebp - 0x58]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x368]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040c190
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x5542ac]
call fcn.0040c190
mov edx, dword [ebp - 0x5c]
pop eax
call fcn.004058a4
jne 0x523765
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, esi
call fcn.004ef918
mov byte [0x5542b0], 1
jmp 0x523769
inc esi
dec ebx
jne 0x523710
cmp byte [0x5542b0], 0
jne 0x52378b
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [eax + 0x334]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.004ef918
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x340], 2
je 0x5237f1
mov eax, dword [0x52c284]
mov eax, dword [eax]
call fcn.00469d48
mov edx, eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x5237ba
adc edx, 0
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.0044ba44
mov eax, dword [0x52c284]
mov eax, dword [eax]
call fcn.00469d3c
mov edx, eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x5237e5
adc edx, 0
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.0044ba68
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x33d], 0
je 0x523827
call sub.user32.dll_GetForegroundWindow
mov ecx, eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov dl, byte [eax + 0x33c]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x338]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [0x52bf8c]
mov edx, dword [edx]
mov dword [edx + 0x114], eax
mov dword [edx + 0x110], 0x521b80
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [0x52bf8c]
mov edx, dword [edx]
mov dword [edx + 0x10c], eax
mov dword [edx + 0x108], 0x521ba8
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x341], 0
je 0x523980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp dword [eax + 0x348], 0
je 0x523980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
cmp dword [eax + 0xc], 0
je 0x523980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
call fcn.0042e648
test eax, eax
jle 0x523980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
call fcn.0042e660
test eax, eax
jle 0x523980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp dword [eax + 0x344], 0
jle 0x523980
xor eax, eax
push ebp
push 0x523976
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x343], 0
je 0x523911
push 0x32
call sub.kernel32.dll_Sleep_1
push ecx
xor ecx, ecx
jcxz 0x52391b
ljmp 0xc4a1:0x59d489ea
pop ecx
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x344]
push eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov al, byte [eax + 0x34c]
push eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov cl, byte [eax + 0x343]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov dl, byte [eax + 0x342]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
call fcn.004f50b8
mov eax, dword [0x52bdf8]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523980
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp dword [eax + 0x3d0], 0
je 0x5239fa
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3d9], 0
je 0x5239b0
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3da], 0
je 0x5239b4
xor eax, eax
jmp 0x5239b6
mov al, 1
push eax
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov cl, byte [eax + 0x3d8]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [eax + 0x3d4]
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3d0]
call fcn.004f53c4
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
cmp byte [eax + 0x3da], 0
je 0x5239fa
call fcn.005223c0
jmp 0x523a42
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.004f0038
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
call fcn.004f0190
mov eax, dword [0x52bdc4]
mov eax, dword [eax]
mov edx, dword [0x52bdc4]
mov edx, dword [edx]
mov dword [edx + 0x2cc], eax
mov dword [edx + 0x2c8], 0x521ab4
call fcn.004cd804
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046c384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523a86
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.004054ac
lea eax, [ebp - 0x50]
call fcn.00405488
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.004054ac
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004054ac
ret