Function at 0x4e2e70
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x5e73f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.004e27f0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
test eax, eax
je 0x4e30e3
mov edx, dword [0x66dd30]
mov eax, dword [edx + 0xc]
mov ecx, 0x66dd30
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x5fd05c
mov dword [esp + 0x44], 0
call fcn.00470df0
lea ecx, [esp + 0x30]
call fcn.004e25f0
mov edx, dword [0x66dd30]
mov eax, dword [edx + 0xc]
mov ecx, 0x66dd30
mov byte [esp + 0x38], 1
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x38], 2
call fcn.004e27f0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push ecx
add eax, 4
lea edx, [esp + 0x34]
push edx
mov ecx, eax
call fcn.004e24d0
test eax, eax
je 0x4e3007
add eax, 8
push eax
lea ecx, [esp + 0x18]
call fcn.004ddaa0
call fcn.004e27f0
mov esi, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
push ecx
lea edx, [esp + 0x20]
push 0x5fd050
push edx
call fcn.0048d2c0
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0x10
push eax
push eax
push 1
push edi
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
or edx, 0xffffffff
mov dword [ebx], eax
test eax, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
je 0x4e3087
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2fa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2fca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2fee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e304d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3071
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e309a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e30bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e30e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004e27f0
cmp dword [eax + 0x34], 0
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
je 0x4e310d
movzx ecx, bp
push ecx
call fcn.004e27f0
mov edx, dword [eax + 0x34]
push edx
call esi
mov dword [ebx], eax
test eax, eax
jne 0x4e2fee
movzx eax, bp
push eax
push 0x400000
call esi
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebx], eax
mov eax, ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret