Function at 0x43d940
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
call fcn.00459240
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [eax + 0x18]
not eax
and ebx, eax
jne 0x43d966
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.00459240
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 0x43d9e3
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x3c], str.AfxWnd42s
call fcn.0043d5e0
test eax, eax
je 0x43d9e3
mov esi, 1
test bl, 0x20
push edi
je 0x43da10
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.0043d5e0
test eax, eax
je 0x43da10
or esi, 0x20
test bl, 2
je 0x43da3e
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], str.AfxControlBar42s
mov dword [esp + 0x38], 0x10
call fcn.0043d5e0
test eax, eax
je 0x43da3e
or esi, 2
test bl, 4
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
je 0x43da96
mov dword [esp + 0x18], 8
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], str.AfxMDIFrame42s
call fcn.00459240
mov eax, dword [eax + 0xc]
push 0x7a01
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x43da85
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x18]
push edx
call fcn.0043d5e0
test eax, eax
je 0x43da96
or esi, 4
test bl, 8
je 0x43dae8
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], str.AfxFrameOrView42s
call fcn.00459240
mov eax, dword [eax + 0xc]
push 0x7a02
push eax
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x43dad7
push 0x7f00
push eax
call edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
call fcn.0043d5e0
test eax, eax
je 0x43dae8
or esi, 8
test bl, 0x10
pop edi
je 0x43db0d
push 0x3fc0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0xff
call fcn.0043d8b0
or esi, eax
and ebx, 0xffffc03f
test bl, 0x40
je 0x43db28
push 0x40
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 0x10
call fcn.0043d8b0
or esi, eax
test bl, bl
jns 0x43db45
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 2
call fcn.0043d8b0
or esi, eax
test bh, 1
je 0x43db63
push 0x100
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 8
call fcn.0043d8b0
or esi, eax
test bh, 2
je 0x43db81
push 0x200
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 0x20
call fcn.0043d8b0
or esi, eax
test bh, 4
je 0x43db9f
push 0x400
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 1
call fcn.0043d8b0
or esi, eax
test bh, 8
je 0x43dbbd
push 0x800
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x40
call fcn.0043d8b0
or esi, eax
test bh, 0x10
je 0x43dbdb
push 0x1000
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 4
call fcn.0043d8b0
or esi, eax
test bh, 0x20
je 0x43dbf9
push 0x2000
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], pe_nt_image_headers32
call fcn.0043d8b0
or esi, eax
test bh, 0x40
je 0x43dc17
push 0x4000
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x800
call fcn.0043d8b0
or esi, eax
test bh, bh
jns 0x43dc34
push 0x8000
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 0x400
call fcn.0043d8b0
or esi, eax
test ebx, 0x10000
je 0x43dc55
push 0x10000
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x200
call fcn.0043d8b0
or esi, eax
test ebx, 0x20000
je 0x43dc76
push 0x20000
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x100
call fcn.0043d8b0
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 0x43dc9b
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