Function at 0x4d85c0
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
call fcn.004f0b90
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [eax + 0x18]
not eax
and ebx, eax
jne 0x4d85e6
mov eax, 1
pop ebx
add esp, 0x34
ret 4
push esi
push edi
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcA]
xor esi, esi
mov dword [esp + 0x1c], ecx
call fcn.004f0b90
test bl, 1
mov edx, dword [eax + 8]
mov eax, dword [0x555108]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 8
je 0x4d8646
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0xb
mov dword [esp + 0x40], str.AfxWnd70s
call fcn.004d6a30
test eax, eax
je 0x4d8646
mov esi, 1
test bl, 0x20
je 0x4d8671
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
or eax, 0x8b
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], str.AfxOleControl70s
call fcn.004d6a30
test eax, eax
je 0x4d8671
or esi, 0x20
test bl, 2
je 0x4d869f
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], str.AfxControlBar70s
mov dword [esp + 0x38], 0x10
call fcn.004d6a30
test eax, eax
je 0x4d869f
or esi, 2
test bl, 4
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
je 0x4d86f7
mov dword [esp + 0x18], 8
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], str.AfxMDIFrame70s
call fcn.004f0b90
mov eax, dword [eax + 0xc]
push 0x7a01
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4d86e6
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004d6a30
test eax, eax
je 0x4d86f7
or esi, 4
test bl, 8
je 0x4d8749
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], str.AfxFrameOrView70s
call fcn.004f0b90
mov eax, dword [eax + 0xc]
push 0x7a02
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4d8738
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x18]
push edx
call fcn.004d6a30
test eax, eax
je 0x4d8749
or esi, 8
test bl, 0x10
je 0x4d876d
push 0x3fc0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0xff
call fcn.004d7940
or esi, eax
and ebx, 0xffffc03f
test bl, 0x40
je 0x4d8788
push 0x40
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x10
call fcn.004d7940
or esi, eax
test bl, bl
jns 0x4d87a5
push 0x80
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 2
call fcn.004d7940
or esi, eax
test bh, 1
je 0x4d87c3
push 0x100
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call fcn.004d7940
or esi, eax
test bh, 2
je 0x4d87e1
push 0x200
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x20
call fcn.004d7940
or esi, eax
test bh, 4
je 0x4d87ff
push 0x400
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 1
call fcn.004d7940
or esi, eax
test bh, 8
je 0x4d881d
push 0x800
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x40
call fcn.004d7940
or esi, eax
test bh, 0x10
je 0x4d883b
push 0x1000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 4
call fcn.004d7940
or esi, eax
test bh, 0x20
je 0x4d8859
push 0x2000
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 0x80
call fcn.004d7940
or esi, eax
test bh, 0x40
je 0x4d8877
push 0x4000
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x800
call fcn.004d7940
or esi, eax
test bh, bh
jns 0x4d8894
push 0x8000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x400
call fcn.004d7940
or esi, eax
test ebx, 0x10000
je 0x4d88b5
push 0x10000
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 0x200
call fcn.004d7940
or esi, eax
test ebx, 0x20000
je 0x4d88d6
push 0x20000
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x100
call fcn.004d7940
or esi, eax
test ebx, 0x40000
je 0x4d88f7
push 0x40000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x8000
call fcn.004d7940
or esi, eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x18]
or eax, esi
mov edx, eax
and edx, 0x3fc0
cmp edx, 0x3fc0
mov dword [ecx + 0x18], eax
jne 0x4d891c
or eax, 0x10
mov dword [ecx + 0x18], eax
or esi, 0x10
mov eax, esi
and eax, ebx
sub eax, ebx
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
add esp, 0x34
ret 4