Function at 0x47fb60
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 0x47fb9b
mov ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x47fba1
mov ebx, eax
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x27c]
cmp edi, 1
jne 0x47fbff
cmp byte [0x4f67b5], 0
jne 0x47fbff
cmp byte [0x4f67b4], 0
jne 0x47fbff
test ecx, ecx
je 0x47fbff
mov eax, dword [0x4f7748]
cmp eax, edi
je 0x47fbd1
cmp eax, 2
jne 0x47fbff
push 1
push 0xa2
push ebx
call fcn.004217f0
push 1
push 0xa6
push ebx
call fcn.004217f0
push 1
push 0xa1
push ebx
call fcn.004217f0
mov byte [0x4f67b5], 1
test ebx, ebx
je 0x480674
cmp edi, 1
jne 0x47fc23
cmp byte [0x4f67b5], 0
jne 0x47fc23
cmp byte [esp + 0x284], 0
je 0x480674
mov eax, dword [0x4f7748]
cmp eax, 7
je 0x480674
cmp eax, 0xa
je 0x480674
mov edi, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x27c]
test esi, esi
mov esi, dword [esp + 0x278]
jne 0x47fc97
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.00445300
test al, al
jne 0x47fc97
cmp dword [0x4f7748], 8
jne 0x480673
cmp edi, esi
jne 0x480673
cmp dword [esp + 0x274], ebp
jne 0x480673
mov edx, esi
or edx, ebp
jne 0x47fcaa
or edi, dword [esp + 0x274]
mov byte [esp + 0x13], dl
je 0x47fcaf
mov byte [esp + 0x13], 1
cmp byte [0x4f677a], 0
jne 0x47fcd2
cmp byte [0x4f6779], 0
jne 0x47fcd2
cmp byte [esp + 0x13], 0
jne 0x47fcd2
call fcn.0049ef7d
mov dword [0x4f6800], eax
mov eax, esi
or eax, ebp
jne 0x47fced
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.00464620
cmp dword [0x4f7748], 0
mov edi, eax
mov dword [esp + 0x3c], edi
je 0x47fddd
cmp dword [0x4f774c], 0
je 0x47fddd
mov eax, dword [esp + 0x270]
or eax, dword [esp + 0x274]
jne 0x47fddd
push 0x1e8
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.0049e680
mov edx, dword [0x4f67b0]
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.0047f8c0
mov ecx, 0x4f6848
lea eax, [esp + 0x8c]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fdb0
test dl, dl
je 0x47fdac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fdb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x47fd90
xor eax, eax
jmp 0x47fdb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47fddd
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 0x4f6848
call fcn.00464e60
cmp byte [0x4f67b5], 0
je 0x4800dd
cmp dword [0x4f774c], 0
je 0x4800dd
cmp dword [esp + 0x280], 1
jne 0x4800dd
mov ebx, dword [0x4f67b0]
cmp ebx, edi
jne 0x47fe29
push 0xbb8
push 5
call fcn.00445300
test al, al
je 0x480071
mov ebx, dword [0x4f67b0]
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 0x47fff5
call fcn.0047e4d0
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 [0x4f774c]
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 0x47ff04
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
xor edx, edx
cmp dword [0x4e2a84], 0xffffffff
setne dl
add edi, 0xffffffff
mov dword [esp + 0x54], edx
js 0x47ff89
lea esp, [esp]
xor esi, esi
cmp dword [esp + 0x30], esi
jbe 0x47ff80
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 0x47ff66
add eax, 2
cmp esi, eax
ja 0x47ff66
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
cmp edi, eax
jb 0x47ff66
cmp byte [esp + 0x2b], 0
mov eax, ebx
jne 0x47ff5c
mov eax, ebp
push 0xffff
push edi
push esi
push eax
jmp 0x47ff73
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 0x47ff36
sub edi, 1
jns 0x47ff20
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 [0x4f774c]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x20]
mov dword [0x4f774c], 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.0049e680
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 0x48003b
mov dword [esp + 0x80], 7
mov ecx, dword [0x4f774c]
push edi
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x8c], 0x47b
mov dword [esp + 0x90], ecx
call fcn.0047f8c0
lea eax, [esp + 0x74]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [0x4f67b0], edi
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
mov dword [0x4f67c0], ecx
mov dword [0x4f67c4], edx
mov dword [0x4f67b8], eax
mov dword [0x4f67bc], ebp
push edi
lea ecx, [esp + 0x260]
push str._4d__
push ecx
call fcn.0049e0d5
add esp, 0xc
cmp dword [esp + 0x280], 0
jne 0x480149
mov edx, dword [esp + 0x2c]
push 0x9e
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x99
jmp 0x4801d1
cmp dword [esp + 0x280], 0
jne 0x480071
cmp dword [0x4f7748], 0
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x274]
mov dword [0x4f67d0], eax
mov dword [0x4f67d4], ecx
mov dword [0x4f67c8], esi
mov dword [0x4f67cc], ebp
je 0x48009d
cmp byte [0x4f677a], 0
je 0x48009d
or eax, ecx
jne 0x48009d
test ebp, ebp
jl 0x480673
jg 0x48009d
cmp esi, 0x10000
jb 0x480673
jmp 0x48009d
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.0047f630
mov ecx, dword [0x4f7748]
test ecx, ecx
jne 0x4801e5
cmp dword [esp + 0x280], 1
jne 0x4801e5
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x270]
mov eax, dword [0x4f67dc]
push ecx
mov ecx, dword [0x4f67d8]
push edx
push eax
push ecx
call fcn.00464620
cmp eax, 0x63
jne 0x4801b6
cmp dword [0x4e5758], ebx
jne 0x4801b6
mov eax, 0x64
push eax
lea edx, [esp + 0x260]
push str._4d__
push edx
call fcn.0049e0d5
add esp, 0xc
push 0xa4
xor ebx, ebx
lea edi, [esp + 0x260]
call fcn.0047f630
mov ecx, dword [0x4f7748]
mov edi, dword [esp + 0x27c]
mov ebx, dword [esp + 0x274]
cmp ebx, edi
jl 0x480220
jg 0x480209
mov eax, dword [esp + 0x270]
cmp eax, dword [esp + 0x278]
jbe 0x480220
mov edx, dword [esp + 0x278]
mov ebx, edi
mov dword [esp + 0x270], edx
mov dword [esp + 0x274], ebx
cmp byte [0x4f677b], 0
je 0x480296
cmp byte [0x4f677a], 0
jne 0x48023c
cmp dword [esp + 0x280], 0
je 0x48024f
cmp byte [0x4f6779], 0
jne 0x48026b
cmp dword [esp + 0x280], 1
jne 0x48026b
test ecx, ecx
je 0x480262
cmp ecx, 1
je 0x480262
cmp ecx, 2
je 0x480262
cmp ecx, 8
jne 0x48026b
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.00464620
push eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x480652
test esi, esi
jne 0x4802ae
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x4802d7
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 [0x4f7748]
cmp dword [esp + 0x34], 0
jne 0x4802f3
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4f7748]
mov esi, eax
jmp 0x4802f7
mov esi, dword [esp + 0x34]
xor ebp, ebp
test ecx, ecx
jne 0x480347
cmp dword [esp + 0x280], 1
jne 0x480347
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [0x4f67dc]
push eax
mov eax, dword [0x4f67d8]
push ecx
push edx
push eax
call fcn.00464620
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.00464620
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 0x480390
mov ebp, edi
mov eax, dword [0x4f67a0]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [0x4f6784]
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 0x480413
mov eax, dword [0x4f6780]
push eax
push esi
call ebx
mov ecx, dword [0x4f6794]
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 [0x4f679c]
push eax
push esi
call ebx
test edi, edi
jle 0x480425
lea eax, [edi - 1]
jmp 0x480427
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 0x480470
mov edx, dword [0x4f6798]
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 [0x4f67a8]
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 [0x4f678c]
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 [0x4f67a4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x4f6788]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x27c]
cmp dword [esp + 0x274], ecx
jg 0x480539
jl 0x480515
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x480539
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 0x4805b0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
dec edx
cmp edi, edx
jge 0x4805b0
mov eax, dword [0x4f67a8]
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 [0x4f678c]
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 0x480629
jl 0x4805d2
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x480629
mov eax, dword [0x4f6790]
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 0x480652
mov ecx, dword [esp + 0x2c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
je 0x480673
cmp dword [esp + 0x280], 0
jne 0x48066c
mov byte [0x4f677a], 1
jmp 0x480673
mov byte [0x4f6779], 1
pop ebp
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e0c6
add esp, 0x25c
ret 0x20