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

Disassembly:
sub esp, 0x25c
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x27c]
mov ecx, dword [0x4db884]
push ebx
push esi
mov esi, dword [esp + 0x27c]
push edi
mov dword [esp + 0x30], esi
test eax, eax
jne 0x4800ab
mov ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x4800b1
mov ebx, eax
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x27c]
cmp edi, 1
jne 0x48010f
cmp byte [0x4f67fd], 0
jne 0x48010f
cmp byte [0x4f67fc], 0
jne 0x48010f
test ecx, ecx
je 0x48010f
mov eax, dword [0x4f7790]
cmp eax, edi
je 0x4800e1
cmp eax, 2
jne 0x48010f
push 1
push 0xa2
push ebx
call fcn.00421ad0
push 1
push 0xa6
push ebx
call fcn.00421ad0
push 1
push 0xa1
push ebx
call fcn.00421ad0
mov byte [0x4f67fd], 1
test ebx, ebx
je 0x480b84
cmp edi, 1
jne 0x480133
cmp byte [0x4f67fd], 0
jne 0x480133
cmp byte [esp + 0x284], 0
je 0x480b84
mov eax, dword [0x4f7790]
cmp eax, 7
je 0x480b84
cmp eax, 0xa
je 0x480b84
mov edi, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x27c]
test esi, esi
mov esi, dword [esp + 0x278]
jne 0x4801a7
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.00445820
test al, al
jne 0x4801a7
cmp dword [0x4f7790], 8
jne 0x480b83
cmp edi, esi
jne 0x480b83
cmp dword [esp + 0x274], ebp
jne 0x480b83
mov edx, esi
or edx, ebp
jne 0x4801ba
or edi, dword [esp + 0x274]
mov byte [esp + 0x13], dl
je 0x4801bf
mov byte [esp + 0x13], 1
cmp byte [0x4f67c2], 0
jne 0x4801e2
cmp byte [0x4f67c1], 0
jne 0x4801e2
cmp byte [esp + 0x13], 0
jne 0x4801e2
call fcn.0049f4dd
mov dword [0x4f6848], eax
mov eax, esi
or eax, ebp
jne 0x4801fd
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.00464b30
cmp dword [0x4f7790], 0
mov edi, eax
mov dword [esp + 0x3c], edi
je 0x4802ed
cmp dword [0x4f7794], 0
je 0x4802ed
mov eax, dword [esp + 0x270]
or eax, dword [esp + 0x274]
jne 0x4802ed
push 0x1e8
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.0049ebe0
mov edx, dword [0x4f67f8]
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.0047fdd0
mov ecx, 0x4f6890
lea eax, [esp + 0x8c]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4802c0
test dl, dl
je 0x4802bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4802c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4802a0
xor eax, eax
jmp 0x4802c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4802ed
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 0x4f6890
call fcn.00465370
cmp byte [0x4f67fd], 0
je 0x4805ed
cmp dword [0x4f7794], 0
je 0x4805ed
cmp dword [esp + 0x280], 1
jne 0x4805ed
mov ebx, dword [0x4f67f8]
cmp ebx, edi
jne 0x480339
push 0xbb8
push 5
call fcn.00445820
test al, al
je 0x480581
mov ebx, dword [0x4f67f8]
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 + 0x38], ebx
cmp esi, ebx
je 0x480505
call fcn.0047e9e0
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 [0x4f7794]
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 0x480414
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
xor edx, edx
cmp dword [0x4e2acc], 0xffffffff
setne dl
add edi, 0xffffffff
mov dword [esp + 0x54], edx
js 0x480499
lea esp, [esp]
xor esi, esi
cmp dword [esp + 0x30], esi
jbe 0x480490
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 0x480476
add eax, 2
cmp esi, eax
ja 0x480476
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
cmp edi, eax
jb 0x480476
cmp byte [esp + 0x2b], 0
mov eax, ebx
jne 0x48046c
mov eax, ebp
push 0xffff
push edi
push esi
push eax
jmp 0x480483
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 0x480446
sub edi, 1
jns 0x480430
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 [0x4f7794]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x20]
mov dword [0x4f7794], 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 edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x27c]
push 0x1e8
lea edx, [esp + 0x78]
push 0
push edx
call fcn.0049ebe0
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 0x48054b
mov dword [esp + 0x80], 7
mov ecx, dword [0x4f7794]
push edi
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x8c], 0x47b
mov dword [esp + 0x90], ecx
call fcn.0047fdd0
lea eax, [esp + 0x74]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [0x4f67f8], edi
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
mov dword [0x4f6808], ecx
mov dword [0x4f680c], edx
mov dword [0x4f6800], eax
mov dword [0x4f6804], ebp
push edi
lea ecx, [esp + 0x260]
push str._4d__
push ecx
call fcn.0049e635
add esp, 0xc
cmp dword [esp + 0x280], 0
jne 0x480659
mov edx, dword [esp + 0x2c]
push 0x9e
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x99
jmp 0x4806e1
cmp dword [esp + 0x280], 0
jne 0x480581
cmp dword [0x4f7790], 0
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x274]
mov dword [0x4f6818], eax
mov dword [0x4f681c], ecx
mov dword [0x4f6810], esi
mov dword [0x4f6814], ebp
je 0x4805ad
cmp byte [0x4f67c2], 0
je 0x4805ad
or eax, ecx
jne 0x4805ad
test ebp, ebp
jl 0x480b83
jg 0x4805ad
cmp esi, 0x10000
jb 0x480b83
jmp 0x4805ad
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.0047fb40
mov ecx, dword [0x4f7790]
test ecx, ecx
jne 0x4806f5
cmp dword [esp + 0x280], 1
jne 0x4806f5
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x270]
mov eax, dword [0x4f6824]
push ecx
mov ecx, dword [0x4f6820]
push edx
push eax
push ecx
call fcn.00464b30
cmp eax, 0x63
jne 0x4806c6
cmp dword [0x4e57a0], ebx
jne 0x4806c6
mov eax, 0x64
push eax
lea edx, [esp + 0x260]
push str._4d__
push edx
call fcn.0049e635
add esp, 0xc
push 0xa4
xor ebx, ebx
lea edi, [esp + 0x260]
call fcn.0047fb40
mov ecx, dword [0x4f7790]
mov edi, dword [esp + 0x27c]
mov ebx, dword [esp + 0x274]
cmp ebx, edi
jl 0x480730
jg 0x480719
mov eax, dword [esp + 0x270]
cmp eax, dword [esp + 0x278]
jbe 0x480730
mov edx, dword [esp + 0x278]
mov ebx, edi
mov dword [esp + 0x270], edx
mov dword [esp + 0x274], ebx
cmp byte [0x4f67c3], 0
je 0x4807a6
cmp byte [0x4f67c2], 0
jne 0x48074c
cmp dword [esp + 0x280], 0
je 0x48075f
cmp byte [0x4f67c1], 0
jne 0x48077b
cmp dword [esp + 0x280], 1
jne 0x48077b
test ecx, ecx
je 0x480772
cmp ecx, 1
je 0x480772
cmp ecx, 2
je 0x480772
cmp ecx, 8
jne 0x48077b
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.00464b30
push eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x480b62
test esi, esi
jne 0x4807be
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x4807e7
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 [0x4f7790]
cmp dword [esp + 0x34], 0
jne 0x480803
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4f7790]
mov esi, eax
jmp 0x480807
mov esi, dword [esp + 0x34]
xor ebp, ebp
test ecx, ecx
jne 0x480857
cmp dword [esp + 0x280], 1
jne 0x480857
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [0x4f6824]
push eax
mov eax, dword [0x4f6820]
push ecx
push edx
push eax
call fcn.00464b30
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.00464b30
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 0x4808a0
mov ebp, edi
mov eax, dword [0x4f67e8]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [0x4f67cc]
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 0x480923
mov eax, dword [0x4f67c8]
push eax
push esi
call ebx
mov ecx, dword [0x4f67dc]
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 [0x4f67e4]
push eax
push esi
call ebx
test edi, edi
jle 0x480935
lea eax, [edi - 1]
jmp 0x480937
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 0x480980
mov edx, dword [0x4f67e0]
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 [0x4f67f0]
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 [0x4f67d4]
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 [0x4f67ec]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x4f67d0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x27c]
cmp dword [esp + 0x274], ecx
jg 0x480a49
jl 0x480a25
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x480a49
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 0x480ac0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
dec edx
cmp edi, edx
jge 0x480ac0
mov eax, dword [0x4f67f0]
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 [0x4f67d4]
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 0x480b39
jl 0x480ae2
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x480b39
mov eax, dword [0x4f67d8]
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 0x480b62
mov ecx, dword [esp + 0x2c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
je 0x480b83
cmp dword [esp + 0x280], 0
jne 0x480b7c
mov byte [0x4f67c2], 1
jmp 0x480b83
mov byte [0x4f67c1], 1
pop ebp
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e626
add esp, 0x25c
ret 0x20