Function at 0x43d780
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
call fcn.00459080
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [eax + 0x18]
not eax
and ebx, eax
jne 0x43d7a6
mov eax, 1
pop ebx
add esp, 0x34
ret 4
mov edx, dword [sym.imp.USER32.dll_DefWindowProcA]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
push esi
xor esi, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
call fcn.00459080
test bl, 1
mov eax, dword [eax + 8]
mov ecx, dword [0x478710]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], 8
je 0x43d823
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x3c], str.AfxWnd42s
call fcn.0043d420
test eax, eax
je 0x43d823
mov esi, 1
test bl, 0x20
push edi
je 0x43d850
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x18]
or edi, 0x8b
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], str.AfxOleControl42s
call fcn.0043d420
test eax, eax
je 0x43d850
or esi, 0x20
test bl, 2
je 0x43d87e
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], str.AfxControlBar42s
mov dword [esp + 0x38], 0x10
call fcn.0043d420
test eax, eax
je 0x43d87e
or esi, 2
test bl, 4
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
je 0x43d8d6
mov dword [esp + 0x18], 8
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], str.AfxMDIFrame42s
call fcn.00459080
mov eax, dword [eax + 0xc]
push 0x7a01
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x43d8c5
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x18]
push edx
call fcn.0043d420
test eax, eax
je 0x43d8d6
or esi, 4
test bl, 8
je 0x43d928
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], str.AfxFrameOrView42s
call fcn.00459080
mov eax, dword [eax + 0xc]
push 0x7a02
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x43d917
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
call fcn.0043d420
test eax, eax
je 0x43d928
or esi, 8
test bl, 0x10
pop edi
je 0x43d94d
push 0x3fc0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0xff
call fcn.0043d6f0
or esi, eax
and ebx, 0xffffc03f
test bl, 0x40
je 0x43d968
push 0x40
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 0x10
call fcn.0043d6f0
or esi, eax
test bl, bl
jns 0x43d985
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 2
call fcn.0043d6f0
or esi, eax
test bh, 1
je 0x43d9a3
push 0x100
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 8
call fcn.0043d6f0
or esi, eax
test bh, 2
je 0x43d9c1
push 0x200
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 0x20
call fcn.0043d6f0
or esi, eax
test bh, 4
je 0x43d9df
push 0x400
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 1
call fcn.0043d6f0
or esi, eax
test bh, 8
je 0x43d9fd
push 0x800
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x40
call fcn.0043d6f0
or esi, eax
test bh, 0x10
je 0x43da1b
push 0x1000
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 4
call fcn.0043d6f0
or esi, eax
test bh, 0x20
je 0x43da39
push 0x2000
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], pe_nt_image_headers32
call fcn.0043d6f0
or esi, eax
test bh, 0x40
je 0x43da57
push 0x4000
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x800
call fcn.0043d6f0
or esi, eax
test bh, bh
jns 0x43da74
push 0x8000
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 0x400
call fcn.0043d6f0
or esi, eax
test ebx, 0x10000
je 0x43da95
push 0x10000
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x200
call fcn.0043d6f0
or esi, eax
test ebx, 0x20000
je 0x43dab6
push 0x20000
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x100
call fcn.0043d6f0
or esi, eax
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x18]
or eax, esi
mov edx, eax
and edx, 0x3fc0
cmp edx, 0x3fc0
mov dword [ecx + 0x18], eax
jne 0x43dadb
or eax, 0x10
mov dword [ecx + 0x18], eax
or esi, 0x10
mov eax, esi
and eax, ebx
sub eax, ebx
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
add esp, 0x34
ret 4