Function at 0x4799ac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
test dl, dl
je 0x4799c4
add esp, 0xfffffff0
call fcn.00404190
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x479bd0
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0042c588
mov eax, dword [0x98a144]
cmp word [eax + 2], 0
jne 0x4799ff
mov eax, dword [0x98a144]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], fcn.0047b1d0
mov eax, dword [0x98a4b0]
cmp word [eax + 2], 0
jne 0x479a1c
mov eax, dword [0x98a4b0]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], fcn.0047b354
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
mov dl, 1
mov eax, dword [0x41e52c]
call fcn.00403dfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov dl, 1
mov eax, dword [0x41e52c]
call fcn.00403dfc
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x60], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x84], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], 0x80000018
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], 0x1f4
mov eax, dword [ebp - 4]
mov byte [eax + 0x7c], 1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0x9c4
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x9d], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0xb4], 1
mov dl, 1
mov eax, dword [0x42ebb4]
call fcn.004372fc
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], ebx
push 0x479bfc
mov eax, dword [0x989d94]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, ebx
call fcn.004376cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 4]
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], 0x47b824
push pe_nt_image_headers32
lea eax, [ebp - 0x105]
push eax
mov eax, dword [0x989d94]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x105]
push eax
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x105]
mov dl, 0x5c
call fcn.004110d8
test eax, eax
je 0x479b41
lea edx, [eax + 1]
lea eax, [ebp - 0x105]
call fcn.0040c2a0
lea eax, [ebp - 0x105]
mov dl, 0x2e
call fcn.00411100
test eax, eax
je 0x479b55
mov byte [eax], 0
lea eax, [ebp - 0x105]
inc eax
push eax
call sub.user32.dll_CharLowerA
mov eax, dword [ebp - 4]
add eax, 0x8c
lea edx, [ebp - 0x105]
mov ecx, pe_nt_image_headers32
call fcn.00404ef4
mov eax, dword [0x9897a4]
cmp byte [eax], 0
jne 0x479b8c
mov eax, dword [ebp - 4]
call fcn.00479d7c
mov eax, dword [ebp - 4]
mov byte [eax + 0x59], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x5a], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x5b], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x9e], 1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xa0], edx
mov eax, dword [ebp - 4]
call fcn.0047ba00
mov eax, dword [ebp - 4]
call fcn.0047c424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x479bda
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x479bf2
call fcn.004041e8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret