Function at 0x4d9a70
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
call fcn.004f2040
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [eax + 0x18]
not eax
and ebx, eax
jne 0x4d9a96
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.004f2040
test bl, 1
mov edx, dword [eax + 8]
mov eax, dword [0x557108]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 8
je 0x4d9af6
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0xb
mov dword [esp + 0x40], str.AfxWnd70s
call fcn.004d7ee0
test eax, eax
je 0x4d9af6
mov esi, 1
test bl, 0x20
je 0x4d9b21
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.004d7ee0
test eax, eax
je 0x4d9b21
or esi, 0x20
test bl, 2
je 0x4d9b4f
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], str.AfxControlBar70s
mov dword [esp + 0x38], 0x10
call fcn.004d7ee0
test eax, eax
je 0x4d9b4f
or esi, 2
test bl, 4
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
je 0x4d9ba7
mov dword [esp + 0x18], 8
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], str.AfxMDIFrame70s
call fcn.004f2040
mov eax, dword [eax + 0xc]
push 0x7a01
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4d9b96
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004d7ee0
test eax, eax
je 0x4d9ba7
or esi, 4
test bl, 8
je 0x4d9bf9
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], str.AfxFrameOrView70s
call fcn.004f2040
mov eax, dword [eax + 0xc]
push 0x7a02
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4d9be8
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x18]
push edx
call fcn.004d7ee0
test eax, eax
je 0x4d9bf9
or esi, 8
test bl, 0x10
je 0x4d9c1d
push 0x3fc0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0xff
call fcn.004d8df0
or esi, eax
and ebx, 0xffffc03f
test bl, 0x40
je 0x4d9c38
push 0x40
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x10
call fcn.004d8df0
or esi, eax
test bl, bl
jns 0x4d9c55
push 0x80
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 2
call fcn.004d8df0
or esi, eax
test bh, 1
je 0x4d9c73
push 0x100
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call fcn.004d8df0
or esi, eax
test bh, 2
je 0x4d9c91
push 0x200
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x20
call fcn.004d8df0
or esi, eax
test bh, 4
je 0x4d9caf
push 0x400
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 1
call fcn.004d8df0
or esi, eax
test bh, 8
je 0x4d9ccd
push 0x800
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x40
call fcn.004d8df0
or esi, eax
test bh, 0x10
je 0x4d9ceb
push 0x1000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 4
call fcn.004d8df0
or esi, eax
test bh, 0x20
je 0x4d9d09
push 0x2000
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 0x80
call fcn.004d8df0
or esi, eax
test bh, 0x40
je 0x4d9d27
push 0x4000
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x800
call fcn.004d8df0
or esi, eax
test bh, bh
jns 0x4d9d44
push 0x8000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x400
call fcn.004d8df0
or esi, eax
test ebx, 0x10000
je 0x4d9d65
push 0x10000
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 0x200
call fcn.004d8df0
or esi, eax
test ebx, 0x20000
je 0x4d9d86
push 0x20000
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x100
call fcn.004d8df0
or esi, eax
test ebx, 0x40000
je 0x4d9da7
push 0x40000
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x8000
call fcn.004d8df0
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 0x4d9dcc
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