Function at 0x486780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad6de
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5efe20]
mov eax, dword [0x5efe28]
mov edx, dword [0x5efe24]
add eax, ecx
mov dword [ebp - 0x324], eax
mov eax, dword [0x5efe2c]
add eax, edx
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x32c]
push 2
push eax
mov dword [ebp - 0x328], edx
call dword [sym.imp.USER32.dll_MonitorFromRect]
lea ecx, [ebp - 0x354]
mov dword [ebp - 0x354], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [0x5e9a54]
cmp eax, 1
jne 0x48683d
mov edi, SysReAllocString
mov dword [0x5efe30], 0
mov ebx, edi
mov dword [0x5efe2c], edi
mov ecx, ebx
mov dword [0x5efe28], ebx
mov dword [0x5efe24], ecx
mov esi, ecx
jmp 0x486c24
cmp eax, 4
jl 0x486a0c
push 0
lea eax, [ebp - 0x32c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [0x5e9a54]
mov ecx, eax
mov edi, dword [ebp - 0x32c]
and ecx, 8
mov dword [ebp - 0x388], ecx
mov ecx, dword [ebp - 0x324]
je 0x486889
mov eax, ecx
sub eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x5e9a54]
sar esi, 1
jmp 0x48688b
mov esi, edi
sub ecx, edi
mov dword [0x5efe20], esi
mov edx, eax
mov dword [ebp - 0x384], ecx
mov ebx, ecx
and edx, 0xc
mov dword [0x5efe28], ebx
mov dword [ebp - 0x38c], edx
je 0x4868c2
mov eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [0x5e9a54]
sar ebx, 1
mov dword [0x5efe28], ebx
mov edi, dword [ebp - 0x328]
and eax, 0x20
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x390], ebx
je 0x4868f0
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x320]
sar ecx, 1
jmp 0x4868f2
mov ecx, edi
mov edx, dword [0x5e9a54]
sub eax, edi
mov dword [ebp - 0x378], edx
mov edi, eax
and dword [ebp - 0x378], 0x30
mov dword [0x5efe24], ecx
mov dword [ebp - 0x37c], eax
mov dword [0x5efe2c], edi
je 0x486936
cdq
sub eax, edx
mov edx, dword [0x5e9a54]
mov edi, eax
mov eax, dword [ebp - 0x37c]
sar edi, 1
mov dword [0x5efe2c], edi
and edx, 0x40
mov dword [ebp - 0x394], edi
mov dword [ebp - 0x37c], edx
mov edx, dword [ebp - 0x384]
je 0x486975
mov esi, dword [ebp - 0x32c]
mov ebx, edx
mov ecx, dword [ebp - 0x328]
mov edi, eax
mov dword [0x5efe20], esi
mov dword [0x5efe24], ecx
mov dword [0x5efe28], ebx
mov dword [0x5efe2c], edi
cmp dword [ebp - 0x37c], 0
cmove eax, dword [ebp - 0x394]
cmove edx, dword [ebp - 0x390]
test byte [0x5e9a54], 0x80
mov dword [ebp - 0x37c], eax
je 0x486c2a
xor eax, eax
mov edi, dword [ebp - 0x37c]
cmp dword [ebp - 0x388], eax
mov ebx, edx
sete al
lea eax, [eax*4 + 4]
add esi, eax
xor eax, eax
cmp dword [ebp - 0x38c], eax
sete al
lea eax, [eax*4 + 0xc]
sub ebx, eax
xor eax, eax
cmp dword [ebp - 0x380], eax
mov dword [0x5efe28], ebx
sete al
lea eax, [eax*4 + 4]
add ecx, eax
xor eax, eax
cmp dword [ebp - 0x378], eax
mov dword [0x5efe24], ecx
sete al
lea eax, [eax*4 + 0xc]
sub edi, eax
mov dword [0x5efe2c], edi
jmp 0x486c24
cmp eax, 2
je 0x486ba8
cmp eax, 3
je 0x486ba8
mov ecx, dword [0x5efe20]
cmp ecx, 0x80000000
je 0x486ba8
mov edx, dword [0x5efe24]
cmp edx, 0x80000000
je 0x486ba8
mov edi, dword [0x5efe28]
cmp edi, 0x80000000
je 0x486ba8
mov esi, dword [0x5efe2c]
cmp esi, 0x80000000
je 0x486ba8
mov ebx, dword [ebp - 0x340]
mov eax, ebx
sub eax, dword [ebp - 0x350]
sub edx, dword [ebp - 0x34c]
add ecx, eax
mov eax, dword [ebp - 0x33c]
add edx, eax
cmp ecx, ebx
cmovl ecx, ebx
cmp edx, eax
mov dword [0x5efe20], ecx
cmovl edx, eax
mov dword [0x5efe24], edx
lea eax, [edi + ecx]
cmp eax, dword [ebp - 0x338]
jle 0x486acf
mov ecx, dword [ebp - 0x338]
sub ecx, edi
cmp ecx, ebx
cmovl ecx, ebx
mov ebx, dword [ebp - 0x338]
mov dword [0x5efe20], ecx
lea eax, [edi + ecx]
cmp eax, ebx
jle 0x486acf
mov edi, ebx
sub edi, ecx
mov dword [0x5efe28], edi
mov ebx, dword [ebp - 0x334]
lea eax, [esi + edx]
cmp eax, ebx
jle 0x486b04
mov edx, ebx
sub edx, esi
cmp edx, dword [ebp - 0x33c]
cmovl edx, dword [ebp - 0x33c]
mov dword [0x5efe24], edx
lea eax, [esi + edx]
cmp eax, ebx
jle 0x486b04
mov esi, ebx
sub esi, edx
mov dword [0x5efe2c], esi
lea eax, [esi + edx]
push eax
lea eax, [edi + ecx]
push eax
push edx
push ecx
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x486b8b
mov eax, dword [ebp - 0x33c]
mov esi, dword [ebp - 0x338]
mov edx, dword [ebp - 0x334]
sub edx, eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x378], ecx
mov dword [0x5efe24], ecx
mov ecx, esi
sub ecx, dword [ebp - 0x340]
lea edi, [edx - 0x20]
mov ebx, edi
mov dword [0x5efe2c], edi
lea eax, [ecx - 0x20]
cmp eax, edi
cmovl ebx, eax
cmovge ecx, edx
sub esi, ecx
mov dword [0x5efe28], ebx
add esi, 0x10
jmp 0x486c1e
mov edi, dword [0x5efe2c]
mov ebx, dword [0x5efe28]
mov ecx, dword [0x5efe24]
mov esi, dword [0x5efe20]
jmp 0x486c2a
push 0
lea eax, [ebp - 0x32c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x328]
mov esi, dword [ebp - 0x324]
mov edx, esi
sub edx, dword [ebp - 0x32c]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x378], ecx
mov dword [0x5efe24], ecx
mov ecx, dword [ebp - 0x320]
sub ecx, eax
lea eax, [edx - 0x20]
lea edi, [ecx - 0x20]
cmp eax, edi
mov dword [0x5efe2c], edi
mov ebx, edi
cmovl ebx, eax
cmovge edx, ecx
sub edx, 0x20
mov dword [0x5efe28], ebx
cmp dword [0x5e9a54], 3
jne 0x486c19
mov esi, dword [ebp - 0x32c]
add esi, 0x10
jmp 0x486c1e
sub esi, edx
sub esi, 0x10
mov ecx, dword [ebp - 0x378]
mov dword [0x5efe20], esi
lea eax, [ebx + esi]
mov dword [ebp - 0x364], esi
mov dword [ebp - 0x35c], eax
lea eax, [edi + ecx]
push 0x984
mov dword [ebp - 0x360], ecx
mov dword [ebp - 0x358], eax
call fcn.0057eb4e
mov edi, eax
add esp, 4
mov dword [ebp - 0x38c], edi
mov dword [ebp - 4], 0
lea ebx, [edi + 4]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebx], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 0x380], ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
lea ecx, [edi + 0x30]
mov dword [edi + 0x24], 0x4025e0
mov dword [edi + 0x28], 0x4025e8
mov dword [edi + 0x2c], 0x41ddf4
mov dword [edi], 0x41de04
mov dword [edi + 0x24], 0x41dd64
mov dword [edi + 0x28], 0x41dd74
mov dword [edi + 0x2c], 0x41db44
call fcn.00541de7
mov dword [edi], fcn.00462390
mov dword [edi + 0x24], 0x41dd84
mov dword [edi + 0x28], 0x41dd6c
mov dword [edi + 0x2c], 0x41db4c
lea esi, [edi + 0x350]
mov byte [ebp - 4], 2
lea ecx, [esi + 4]
mov dword [ebp - 0x388], esi
call fcn.0045dd00
mov dword [esi], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x34c], 0x409330
mov dword [edi], 0x41dd4c
mov dword [edi + 0x24], 0x41ddd0
mov dword [edi + 0x28], 0x41dd7c
mov dword [edi + 0x2c], 0x41de30
mov dword [edi + 0x34c], 0x41db54
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x48731e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x6b8], eax
mov byte [ebp - 4], 4
lea ecx, [edi + 0x6c8]
push 0
mov dword [edi + 0x6bc], 0
mov dword [edi + 0x6c0], 0
mov dword [edi + 0x6c4], 0
call fcn.00548be6
push 0x53
lea ecx, [edi + 0x6d4]
mov byte [ebp - 4], 5
call fcn.00548cd3
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0x20]
push dword [ebp - 0x380]
mov dword [edi + 0x6e0], 0
push eax
push 0x5e4c78
mov dword [edi + 0x704], 0
mov dword [edi + 0x970], 0
mov dword [edi + 0x974], 0
mov dword [edi + 0x978], 0
mov dword [edi + 0x97c], 0
mov dword [edi + 0x980], 0
call fcn.00463570
add esp, 8
movzx eax, ax
mov ecx, edi
push eax
push 0
push 0x40000
push 0x86070000
push 0x420c94
lea eax, [ebp - 0x364]
push eax
push 0
call fcn.00463480
mov eax, dword [ebx]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
mov dword [0x5f0848], eax
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x64
call fcn.005434be
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push eax
call esi
push eax
push 1
push 0x80
push dword [ebx]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
push 0
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x64
call fcn.005434be
push eax
call esi
mov esi, dword [ebp - 0x380]
push eax
push 0
push 0x80
push dword [esi]
call ebx
push 0
mov ecx, esi
call fcn.0045db10
cmp dword [0x5efe30], 0
mov eax, 3
mov esi, dword [ebp + 8]
cmovne esi, eax
cmp dword [0x5eca34], 0
mov eax, dword [0x5e9fa0]
jne 0x486eb3
cmp eax, 2
jne 0x486ed0
cmp eax, 1
je 0x486ed0
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [0x5ed3c4], 0
je 0x486ee9
mov ecx, dword [0x5f0848]
mov edx, 1
call fcn.00473570
push 0x41bcc8
push ecx
mov edx, 1
push 0
mov ecx, edx
call fcn.00482470
add esp, 0xc
cmp dword [0x5e9fac], 0
jne 0x486f24
push esi
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x486f42
push 0
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x5f0848]
mov edx, 1
call fcn.00484090
mov eax, dword [0x5e9a4c]
test eax, eax
je 0x486f7d
push 0
push 0
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x114]
call fcn.00467590
mov ecx, eax
mov dword [0x5f0370], ecx
jmp 0x486f83
mov ecx, dword [0x5f0370]
mov eax, dword [0x5e95a8]
test eax, eax
je 0x48705a
push eax
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push dword [0x5e95a8]
push ecx
test eax, eax
je 0x486fcf
lea edx, [ebp - 0x31c]
call fcn.004830f0
add esp, 8
test eax, eax
je 0x487005
lea eax, [ebp - 0x31c]
xor edx, edx
push eax
push ecx
push esi
xor ecx, ecx
call fcn.00482470
add esp, 0xc
mov esi, eax
jmp 0x487005
push 0
xor edx, edx
xor ecx, ecx
call fcn.00482470
mov esi, eax
add esp, 0xc
test esi, esi
je 0x487005
cmp dword [0x5e9b8c], 0
je 0x487005
push dword [0x5e8f84]
mov edx, dword [0x5e97f0]
call fcn.0046e570
add esp, 4
call fcn.0046e7d0
push dword [0x5e95a8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x487089
mov eax, dword [0x5e95dc]
cmp eax, 1
jne 0x48703a
mov ecx, 0x5f05e0
mov dword [0x5f03a4], 0
mov dword [0x5f0a68], eax
call fcn.004842b0
jmp 0x487089
cmp eax, 2
jne 0x487089
mov ecx, 0x5f05e0
mov dword [0x5f03a4], eax
mov dword [0x5f0a68], 1
call fcn.004842b0
jmp 0x487089
cmp ecx, 0xffffffff
je 0x487089
test ecx, ecx
mov dword [0x5e95cc], ecx
push 0
mov eax, 0xfde9
mov dword [0x5e95b0], ecx
cmove eax, dword [0x5e8f74]
push eax
push 0x7f5
push dword [0x5e9fbc]
call ebx
cmp dword [0x5e95c0], 0
mov dword [0x5f0370], 0xffffffff
mov dword [0x5e9b58], 0
mov dword [0x5e9d98], 0
je 0x48718d
push 0
push 0
push 0x87d
push dword [0x5e9fbc]
call ebx
test eax, eax
je 0x48718d
mov esi, dword [0x5e9fbc]
mov edi, dword [0x5ed600]
push 0
push 0
push 0x86a
push esi
mov dword [0x5ed600], 0
call ebx
push 0
push 0
push 0x90e
push esi
call ebx
push 0
push 0
push 0x81e
push dword [0x5e9fbc]
call ebx
push 0
push 0
push 0x7d6
push dword [0x5e9fbc]
call ebx
test eax, eax
jle 0x487132
push 0
push 0
push 0x919
push dword [0x5e9fbc]
call ebx
push 0
push 0
push 0x883
push dword [0x5e9fbc]
call ebx
push 0
push 0
push 0x919
push dword [0x5e9fbc]
call ebx
push 0
push 0
push 0x81f
push dword [0x5e9fbc]
call ebx
cmp dword [0x5e9b8c], 0
mov dword [0x5ed600], edi
je 0x487188
push dword [0x5e8f84]
mov edx, dword [0x5e97f0]
call fcn.0046e570
add esp, 4
call fcn.0046e7d0
mov eax, dword [0x5e9b78]
test eax, eax
je 0x4871bd
add eax, 0xffff9ca3
push 0
movzx eax, ax
or eax, 0x10000
push eax
push 0x111
push dword [0x5f0848]
call ebx
mov dword [0x5e9b78], 0
mov eax, dword [0x5e8f80]
test eax, eax
je 0x4871ed
add eax, 0xffff9d07
push 0
movzx eax, ax
or eax, 0x10000
push eax
push 0x111
push dword [0x5f0848]
call ebx
mov dword [0x5e8f80], 0
call fcn.00476b00
cmp dword [0x5e9b80], 0
je 0x48728f
push dword [0x5f0848]
mov dword [0x5e9b68], 1
call dword [sym.imp.USER32.dll_SetClipboardViewer]
cmp dword [0x5ed5f0], 0
mov dword [0x5e9b64], eax
mov dword [0x5be124], 0x2712
jne 0x48723e
mov eax, dword [0x5e95cc]
cmp eax, dword [0x5e95b0]
jne 0x48723e
xor eax, eax
jmp 0x487243
mov eax, 1
sub esp, 0xc
mov edx, 0x2712
push eax
push ecx
mov ecx, dword [0x5f0848]
push 0x5f05e0
sub esp, 8
call fcn.00473260
add esp, 0x20
mov dword [0x5e9b68], 0
mov dword [0x5e9b84], 0
push 0x484590
push 0x64
push 0xa001
push dword [0x5f0848]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x5e9b70], 0
je 0x4872e4
mov eax, dword [0x5e95b8]
test eax, eax
je 0x4872bd
push eax
mov edx, 0x5f05e0
call fcn.0048c320
add esp, 4
push dword [0x5e95b8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4872da
mov edx, dword [0x5e9fb4]
cmp edx, 0x25
ja 0x4872da
mov edx, dword [edx*4 + 0x417538]
mov ecx, dword [0x5e9fbc]
call fcn.0048a7d0
mov dword [0x5e9b70], 0
cmp dword [0x5e9fac], 0
je 0x4872f8
mov ecx, dword [0x5f0848]
call fcn.00484160
call fcn.00481d90
mov eax, dword [0x5f0848]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0045d5a0
int3