Function at 0x480000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x25c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x27c]
mov ecx, dword [0x4db83c]
push ebx
push esi
mov esi, dword [esp + 0x27c]
push edi
mov dword [esp + 0x30], esi
test eax, eax
jne 0x48003b
mov ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x480041
mov ebx, eax
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x27c]
cmp edi, 1
jne 0x48009f
cmp byte [0x4f6b85], 0
jne 0x48009f
cmp byte [0x4f6b84], 0
jne 0x48009f
test ecx, ecx
je 0x48009f
mov eax, dword [0x4f7b18]
cmp eax, edi
je 0x480071
cmp eax, 2
jne 0x48009f
push 1
push 0xa2
push ebx
call fcn.00421910
push 1
push 0xa6
push ebx
call fcn.00421910
push 1
push 0xa1
push ebx
call fcn.00421910
mov byte [0x4f6b85], 1
test ebx, ebx
je 0x480afd
cmp edi, 1
jne 0x4800c3
cmp byte [0x4f6b85], 0
jne 0x4800c3
cmp byte [esp + 0x284], 0
je 0x480afd
mov eax, dword [0x4f7b18]
cmp eax, 7
je 0x480afd
cmp eax, 0xa
je 0x480afd
mov edi, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x27c]
test esi, esi
mov esi, dword [esp + 0x278]
jne 0x480137
mov eax, dword [esp + 0x280]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x96
add ecx, 0x32
push ecx
push eax
call fcn.004458a0
test al, al
jne 0x480137
cmp dword [0x4f7b18], 8
jne 0x480afc
cmp edi, esi
jne 0x480afc
cmp dword [esp + 0x274], ebp
jne 0x480afc
mov edx, esi
or edx, ebp
jne 0x48014a
or edi, dword [esp + 0x274]
mov byte [esp + 0x13], dl
je 0x48014f
mov byte [esp + 0x13], 1
cmp byte [0x4f6b4a], 0
jne 0x480172
cmp byte [0x4f6b49], 0
jne 0x480172
cmp byte [esp + 0x13], 0
jne 0x480172
call fcn.0049ed5d
mov dword [0x4f6bd0], eax
mov eax, esi
or eax, ebp
jne 0x48018d
mov esi, 1
xor ebp, ebp
mov dword [esp + 0x278], esi
mov dword [esp + 0x27c], ebp
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x270]
push ebp
push esi
push ecx
push edx
call fcn.00464ae0
cmp dword [0x4f7b18], 0
mov edi, eax
mov dword [esp + 0x38], edi
je 0x48027d
cmp dword [0x4f7b1c], 0
je 0x48027d
mov eax, dword [esp + 0x270]
or eax, dword [esp + 0x274]
jne 0x48027d
push 0x1e8
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.0049e460
mov edx, dword [0x4f6b80]
add esp, 0xc
push edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], 0x58
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 0x7b
mov dword [esp + 0x88], 4
call fcn.0047fd60
mov ecx, 0x4f6c18
lea eax, [esp + 0x8c]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x480250
test dl, dl
je 0x48024c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x480250
add eax, 2
add ecx, 2
test dl, dl
jne 0x480230
xor eax, eax
jmp 0x480255
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48027d
lea ecx, [esp + 0x74]
push ecx
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x200
lea edx, [esp + 0x90]
push edx
push 0x4f6c18
call fcn.00465320
cmp byte [0x4f6b85], 0
je 0x48057d
cmp dword [0x4f7b1c], 0
je 0x48057d
cmp dword [esp + 0x280], 1
jne 0x48057d
mov ebx, dword [0x4f6b80]
cmp ebx, edi
jne 0x4802c9
push 0xbb8
push 5
call fcn.004458a0
test al, al
je 0x480511
mov ebx, dword [0x4f6b80]
mov ecx, edi
shl ecx, 4
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shl ebx, 4
shr esi, 0x1f
add esi, edx
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
cmp esi, ebx
je 0x480495
call fcn.0047e970
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, 0x20
push 0
setl byte [esp + 0x2f]
call ebp
push 0
mov ebx, eax
call ebp
mov ecx, dword [0x4f7b1c]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetIconInfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push ecx
lea eax, [edx + edx]
add edi, edi
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx ecx, word [esp + 0x6e]
movzx edx, word [esp + 0x6c]
mov eax, dword [esp + 0x30]
push 0
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0x2b], 0
mov dword [esp + 0x50], eax
jne 0x4803a4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
xor edx, edx
cmp dword [0x4e2a74], 0xffffffff
setne dl
add edi, 0xffffffff
mov dword [esp + 0x54], edx
js 0x480429
lea esp, [esp]
xor esi, esi
cmp dword [esp + 0x30], esi
jbe 0x480420
mov eax, dword [esp + 0x30]
shr eax, 1
sub eax, dword [esp + 0x54]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
cmp esi, eax
jb 0x480406
add eax, 2
cmp esi, eax
ja 0x480406
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
cmp edi, eax
jb 0x480406
cmp byte [esp + 0x2b], 0
mov eax, ebx
jne 0x4803fc
mov eax, ebp
push 0xffff
push edi
push esi
push eax
jmp 0x480413
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
push edi
push esi
push ebp
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, dword [esp + 0x30]
jb 0x4803d6
sub edi, 1
jns 0x4803c0
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
call edi
mov edx, dword [esp + 0x50]
push edx
push ebp
call edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call edi
push ebp
call edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov ecx, dword [0x4f7b1c]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x20]
mov dword [0x4f7b1c], edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x44]
push ecx
call edi
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x27c]
push 0x1e8
lea edx, [esp + 0x78]
push 0
push edx
call fcn.0049e460
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x74], 0x58
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x7b
mov dword [esp + 0x80], 5
cmp esi, ebx
je 0x4804db
mov dword [esp + 0x80], 7
mov ecx, dword [0x4f7b1c]
push edi
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x8c], 0x47b
mov dword [esp + 0x90], ecx
call fcn.0047fd60
lea eax, [esp + 0x74]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [0x4f6b80], edi
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
mov dword [0x4f6b90], ecx
mov dword [0x4f6b94], edx
mov dword [0x4f6b88], eax
mov dword [0x4f6b8c], ebp
push edi
lea ecx, [esp + 0x260]
push str._4d__
push ecx
call fcn.0049deb5
add esp, 0xc
cmp dword [esp + 0x280], 0
jne 0x4805e9
mov edx, dword [esp + 0x2c]
push 0x9e
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x99
jmp 0x48065a
cmp dword [esp + 0x280], 0
jne 0x480511
cmp dword [0x4f7b18], 0
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x274]
mov dword [0x4f6ba0], eax
mov dword [0x4f6ba4], ecx
mov dword [0x4f6b98], esi
mov dword [0x4f6b9c], ebp
je 0x48053d
cmp byte [0x4f6b4a], 0
je 0x48053d
or eax, ecx
jne 0x48053d
test ebp, ebp
jl 0x480afc
jg 0x48053d
cmp esi, 0x10000
jb 0x480afc
jmp 0x48053d
mov eax, dword [esp + 0x2c]
push 0x9d
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x98
xor ebx, ebx
lea edi, [esp + 0x260]
mov esi, eax
call fcn.0047fad0
mov ecx, dword [0x4f7b18]
test ecx, ecx
jne 0x48066e
cmp dword [esp + 0x280], 1
jne 0x48066e
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x270]
mov eax, dword [0x4f6bac]
push ecx
mov ecx, dword [0x4f6ba8]
push edx
push eax
push ecx
call fcn.00464ae0
push eax
mov edx, edi
push str._4d__
push edx
call fcn.0049deb5
add esp, 0xc
push 0xa4
xor ebx, ebx
lea edi, [esp + 0x260]
call fcn.0047fad0
mov ecx, dword [0x4f7b18]
mov edi, dword [esp + 0x27c]
mov ebx, dword [esp + 0x274]
cmp ebx, edi
jl 0x4806a9
jg 0x480692
mov eax, dword [esp + 0x270]
cmp eax, dword [esp + 0x278]
jbe 0x4806a9
mov edx, dword [esp + 0x278]
mov ebx, edi
mov dword [esp + 0x270], edx
mov dword [esp + 0x274], ebx
cmp byte [0x4f6b4b], 0
je 0x48071f
cmp byte [0x4f6b4a], 0
jne 0x4806c5
cmp dword [esp + 0x280], 0
je 0x4806d8
cmp byte [0x4f6b49], 0
jne 0x4806f4
cmp dword [esp + 0x280], 1
jne 0x4806f4
test ecx, ecx
je 0x4806eb
cmp ecx, 1
je 0x4806eb
cmp ecx, 2
je 0x4806eb
cmp ecx, 8
jne 0x4806f4
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x270]
push 0
push edi
push eax
push ebx
push ecx
call fcn.00464ae0
push eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x480adb
test esi, esi
jne 0x480737
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x480760
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x2c]
push 2
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
inc dword [esp + 0x20]
mov ecx, dword [0x4f7b18]
cmp dword [esp + 0x34], 0
jne 0x48077c
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4f7b18]
mov esi, eax
jmp 0x480780
mov esi, dword [esp + 0x34]
xor ebp, ebp
test ecx, ecx
jne 0x4807d0
cmp dword [esp + 0x280], 1
jne 0x4807d0
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [0x4f6bac]
push eax
mov eax, dword [0x4f6ba8]
push ecx
push edx
push eax
call fcn.00464ae0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov ecx, eax
imul ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [esp + 0x274]
push eax
mov eax, dword [esp + 0x274]
push ecx
push edx
push eax
call fcn.00464ae0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov ecx, eax
imul ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebp, edi
jle 0x480819
mov ebp, edi
mov eax, dword [0x4f6b70]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [0x4f6b54]
push ecx
push esi
mov dword [esp + 0x40], eax
call ebx
mov edx, dword [esp + 0x20]
dec edx
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
lea ecx, [edi + eax]
push ecx
inc edx
xor ecx, ecx
cmp ebp, 1
setle cl
push edx
dec ecx
and ecx, 2
sub eax, ecx
lea edx, [eax + ebp + 1]
push edx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
test ebp, ebp
jle 0x48089c
mov eax, dword [0x4f6b50]
push eax
push esi
call ebx
mov ecx, dword [0x4f6b64]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
dec edx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [eax + ebp]
push ecx
inc edx
push edx
inc eax
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [0x4f6b6c]
push eax
push esi
call ebx
test edi, edi
jle 0x4808ae
lea eax, [edi - 1]
jmp 0x4808b0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
add eax, edx
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.GDI32.dll_LineTo]
push eax
add ecx, ebp
push ecx
push esi
call ebx
test ebp, ebp
jle 0x4808f9
mov edx, dword [0x4f6b68]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
dec edx
push edx
push eax
push esi
call ebx
mov ecx, dword [0x4f6b78]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
dec edx
push edx
push eax
push esi
call ebx
mov ecx, dword [0x4f6b5c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc edx
push edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0
push ecx
inc edx
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
inc ecx
push ecx
push esi
call ebx
mov edx, dword [0x4f6b74]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x4f6b58]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x27c]
cmp dword [esp + 0x274], ecx
jg 0x4809c2
jl 0x48099e
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x4809c2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x18]
dec ecx
push ecx
inc edx
push edx
lea ecx, [edi + eax + 1]
push ecx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
test edi, edi
jle 0x480a39
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
dec edx
cmp edi, edx
jge 0x480a39
mov eax, dword [0x4f6b78]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
lea eax, [edi + edx]
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [edi + edx]
push eax
push esi
call ebx
mov ecx, dword [0x4f6b5c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
push edx
lea ecx, [edi + eax]
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
add eax, ebp
push eax
push esi
call ebx
mov ecx, dword [esp + 0x27c]
cmp dword [esp + 0x274], ecx
jg 0x480ab2
jl 0x480a5b
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x480ab2
mov eax, dword [0x4f6b60]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
lea eax, [edi + edx + 1]
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
dec edx
push edx
push esi
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, 0xfffffffe
push eax
dec ecx
push ecx
push esi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add edx, 0xfffffffe
push edx
lea ecx, [edi + eax + 1]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x38]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call edi
mov eax, dword [esp + 0x3c]
push eax
push esi
call edi
cmp dword [esp + 0x34], 0
jne 0x480adb
mov ecx, dword [esp + 0x2c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
je 0x480afc
cmp dword [esp + 0x280], 0
jne 0x480af5
mov byte [0x4f6b4a], 1
jmp 0x480afc
mov byte [0x4f6b49], 1
pop ebp
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x25c
ret 0x20