Function at 0x405260
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 8], 0x112
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], edi
je 0x405494
mov eax, dword [ebp + 8]
cmp eax, 0x7eb
je 0x40543e
cmp eax, 0x2b24
jne 0x4053eb
cmp esi, 1
jne 0x405415
call fcn.0040aa4f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4052e1
push 0x80004005
call fcn.004015f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
call fcn.0040aa4f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405311
push 0x80004005
call fcn.004015f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ecx, str.chong
call fcn.00401a10
mov edi, dword [ebp - 0x1c]
test al, al
je 0x4053a7
lea edx, [ebp - 0x18]
mov ecx, str.username
call fcn.00401a10
mov esi, dword [ebp - 0x18]
test al, al
je 0x4053a7
push edi
push esi
call dword [0x463d3c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], 0
call fcn.00401660
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
test eax, eax
jle 0x405383
push eax
lea eax, [ebp - 0x14]
push 0x453cc4
push eax
call fcn.00409670
add esp, 0xc
jmp 0x40538d
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00407e00
push 0x30
push 0x453ce0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x14]
call fcn.004015d0
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4053c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4053e5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.00410f66
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 2
je 0x4053eb
cmp esi, 3
jne 0x4053eb
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], 2
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPlacement]
jmp 0x4053eb
cmp esi, 0x201
je 0x40544e
cmp esi, 0x204
jne 0x4053eb
call fcn.00418331
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40547d
call fcn.00418331
push 0
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040ca8d
jmp 0x4053eb
call fcn.00418331
push 5
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040ca8d
jmp 0x4053eb
cmp edi, 0xf020
jne 0x40559f
mov eax, dword [ebx + 0x20]
lea esi, [ebx + 0x98]
mov dword [esi], 0x1fc
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], 0x84
call fcn.00418331
push 0x89
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebx + 0xac], eax
mov dword [ebp - 0x14], 0
call fcn.0040aa4f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4054fc
push 0x80004005
call fcn.004015f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00406ce0
test al, al
jne 0x40552e
push 0
push 0x454537
lea ecx, [ebp - 0x14]
call fcn.00409d30
push dword [ebp - 0x14]
lea eax, [ebx + 0xb0]
push 0x80
push eax
call fcn.0042ef54
add esp, 0xc
mov dword [ebx + 0xa8], 0x7eb
mov dword [ebx + 0xa4], 7
push esi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
call fcn.00418331
push 0
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
call fcn.0040ca8d
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405598
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x4053f7
cmp edi, 0xf060
jne 0x4053eb
lea eax, [ebx + 0x98]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
jmp 0x4053eb