Function at 0x401780
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.USER32.DLL_IsMenu
mov eax, dword [0x41d894]
mov ecx, 0xf3
cmp dword [0x41d79c], eax
ja 0x4017b7
mov esi, dword [0x41d70c]
mov ax, 0x80
mov edx, dword [0x41d8e4]
mov dword [0x41d700], edx
mov edi, dword [0x41d6bc]
mov dword [0x41d630], eax
push edi
push dword [0x41d6d4]
call sub.USER32.DLL_IsChild
sub eax, dword [0x41d794]
add eax, eax
cmp edi, 1
jl 0x4017f9
mov edx, dword [0x41d838]
mov dword [0x41d8f0], eax
mov ecx, dword [0x41d6e4]
add eax, eax
mov dword [0x41d758], esi
mov dword [0x41d850], eax
mov dword [0x41d600], edx
mov edx, dword [0x41d82c]
push edx
push eax
call sub.USER32.DLL_IsChild
adc eax, dword [0x41d770]
add eax, edi
sub eax, ecx
cmp eax, dword [0x41d88c]
ja 0x401840
mov eax, dword [0x41d7e8]
mov dword [0x41d684], esi
or edx, dword [0x41d9bc]
add eax, eax
mov eax, 0x80
mov dword [0x41d7ec], edx
mov dword [0x41d66c], eax
mov dword [0x41d8b0], eax
mov edx, dword [0x41d88c]
push 0x64
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d6b0]
sub ecx, edx
mov edi, dword [0x41d7a4]
mov eax, 4
cmp eax, esi
jae 0x401887
mov eax, dword [0x41d6e4]
add edi, ecx
mov eax, 0x65
mov dword [0x41d93c], edi
mov dword [0x41d7c4], eax
mov esi, dword [0x41d694]
mov eax, dword [0x41d7c4]
push 0x14e1
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d7a4]
add eax, edx
cmp eax, dword [0x41d7cc]
jae 0x4018c9
mov dword [0x41d7bc], eax
mov eax, dword [0x41d9f8]
mov ecx, 8
mov esi, dword [0x41d6ac]
add eax, ecx
mov dword [0x41d874], eax
mov dword [0x41d830], eax
mov dword [0x41d6b8], esi
push eax
call sub.USER32.DLL_GetMenu
mov eax, dword [0x41d7c8]
add eax, edi
mov esi, dword [0x41d6f8]
mov di, 0x95
test eax, eax
jb 0x4018fd
mov eax, dword [0x41d8c4]
mov eax, dword [0x41d66c]
mov eax, 0x1d
mov eax, dword [0x41d69c]
mov dword [0x41d988], eax
mov dword [0x41d7b8], ecx
push dword [0x41d85c]
mov dword [0x41d6c8], eax
push 0x20
call sub.USER32.DLL_IsChild
mov esi, dword [0x41d8ac]
mov di, 0xf1
mov eax, dword [0x41d6cc]
sub ecx, eax
cmp dword [0x41d900], 0xa6
je 0x401957
mov dword [0x41d77c], ecx
mov edx, dword [0x41d804]
sub ecx, ecx
mov dword [0x41d600], esi
mov dword [0x41d600], edx
mov dword [0x41d7f4], edx
mov eax, dword [0x41d61c]
mov eax, dword [0x41d924]
push 0xc1
mov dword [0x41d6f0], eax
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d948]
xor eax, eax
cmp eax, dword [0x41d7bc]
jb 0x401999
mov eax, dword [0x41d984]
mov dword [0x41d600], esi
and eax, dword [0x41d664]
add eax, edi
mov cx, 4
mov dword [0x41d75c], edi
mov dword [0x41d7ec], ecx
mov edx, dword [0x41d830]
mov dword [0x41d8fc], edx
push dword [0x41d748]
call sub.USER32.DLL_IsMenu
mov eax, dword [0x41d850]
mov edx, 2
mov esi, dword [0x41d758]
sub eax, eax
cmp edi, 0
ja 0x4019f3
mov edx, dword [0x41d7e8]
mov eax, 1
mov eax, dword [0x41d620]
mov dword [0x41d8f0], eax
xor dword [0x41d9c8], edi
mov dword [0x41d9a8], edx
mov dword [0x41d600], eax
push dword [0x41d958]
call sub.USER32.DLL_GetMenu
mov eax, dword [0x41d9b8]
mov edx, 8
mov edi, dword [0x41d918]
mov ax, 0x96
cmp eax, 0
js 0x401a2a
mov dword [0x41d650], eax
mov eax, dword [0x41d8bc]
sub ecx, edi
add esi, eax
mov dword [0x41d8f0], eax
mov dword [0x41d670], eax
mov dword [0x41d704], eax
push 0x41d880
call sub.USER32.DLL_CharNextA
sbb ecx, dword [0x41d604]
mov esi, 0x10
mov edi, dword [0x41d9f8]
mov ax, 0x40
cmp eax, dword [0x41d8f8]
je 0x401a71
mov eax, dword [0x41d9b8]
mov cx, 0x80
sub ecx, eax
mov dword [0x41d600], eax
adc eax, dword [0x41d624]
mov dword [0x41d790], eax
mov dword [0x41d988], eax
push dword [0x41d670]
push edx
call sub.USER32.DLL_IsChild
mov esi, dword [0x41d960]
sub esi, ecx
test eax, eax
jl 0x401aa5
mov eax, dword [0x41d618]
sub eax, eax
mov eax, dword [0x41d6dc]
mov dword [0x41d7ac], edx
push 0x6a
push 0
call sub.USER32.DLL_LoadIconA
mov edi, dword [0x41d6ec]
sub ecx, ecx
cmp eax, 0
jne 0x401add
mov eax, dword [0x41d920]
mov eax, 0x20
mov eax, dword [0x41d864]
mov ax, 0x80
mov dword [0x41d850], eax
mov eax, dword [0x41d880]
mov dword [0x41d658], eax
push dword [0x41d8f8]
call sub.USER32.DLL_GetMenu
mov eax, dword [0x41d694]
mov eax, 0x17
mov si, 0xd4
cmp ecx, dword [0x41d848]
jne 0x401b21
mov eax, dword [0x41d600]
mov esi, dword [0x41d8f4]
mov edi, dword [0x41d600]
sub eax, ecx
mov esi, 0xd0
mov dword [0x41d928], ecx
mov dword [0x41d600], eax
mov dword [0x41d664], edi
mov dword [0x41d7e0], ecx
push 0x8c
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d738]
add eax, ecx
cmp dword [0x41d778], eax
jbe 0x401b67
mov eax, dword [0x41d7ec]
mov eax, dword [0x41d6a0]
mov edi, 0x10
mov edi, dword [0x41d8ac]
mov dword [0x41d7a4], eax
mov dword [0x41d71c], eax
mov dword [0x41d7b4], eax
push edi
mov dword [0x41d600], ecx
push dword [0x41d784]
call sub.USER32.DLL_IsChild
mov eax, dword [0x41d758]
add eax, eax
mov ecx, 0x40
cmp edx, 0
ja 0x401bba
mov edx, dword [0x41d664]
mov si, 0x20
mov edx, dword [0x41d798]
mov esi, 0x10
mov dword [0x41d7b4], ecx
mov dword [0x41d8fc], eax
mov dword [0x41d6b8], eax
mov dword [0x41d654], esi
mov eax, dword [0x41d920]
mov ax, 0x20
push eax
push edx
call sub.USER32.DLL_IsChild
mov eax, dword [0x41d6d0]
sub edx, eax
sub eax, edi
cmp edx, 1
je 0x401c02
mov ecx, dword [0x41d68c]
mov dword [0x41d9f4], eax
mov ecx, dword [0x41d600]
mov si, 0x1a
mov si, 0xd5
mov dword [0x41d658], ecx
add dword [0x41d6d4], edi
mov dword [0x41d820], eax
mov dword [0x41d838], eax
mov dword [0x41d8e8], edx
push 0x41d600
call sub.USER32.DLL_CharNextA
mov eax, dword [0x41d6c0]
add eax, ecx
mov eax, dword [0x41d924]
sub edi, eax
cmp dword [0x41d784], eax
jg 0x401c4f
mov dword [0x41d8e0], edi
sub eax, dword [0x41d838]
sub eax, edx
mov esi, dword [0x41d974]
add edi, eax
mov dword [0x41d600], esi
mov edi, dword [0x41d7d8]
mov dword [0x41d95c], eax
mov edx, dword [0x41d918]
push 0x20
push eax
call sub.USER32.DLL_IsChild
mov eax, dword [0x41d9f4]
mov ax, 8
add edi, eax
cmp eax, eax
jb 0x401c8f
mov dword [0x41d82c], edx
mov edi, dword [0x41d7c8]
sub eax, eax
mov esi, dword [0x41d720]
mov dword [0x41d760], eax
mov eax, dword [0x41d874]
mov eax, dword [0x41d918]
mov dword [0x41d6e4], eax
push esi
call sub.USER32.DLL_GetMenu
mov edx, dword [0x41d9b0]
mov edi, 0x80
mov edx, dword [0x41d938]
sub esi, eax
cmp eax, dword [0x41d600]
jg 0x401cd4
mov esi, dword [0x41d72c]
mov eax, 4
mov eax, dword [0x41d808]
mov dword [0x41d87c], eax
mov eax, dword [0x41d680]
mov dword [0x41d634], esi
push 0xab
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d824]
add eax, eax
sub ecx, eax
cmp dword [0x41d850], 4
ja 0x401d21
mov dword [0x41d6dc], eax
mov eax, dword [0x41d97c]
mov eax, 0xba
mov eax, 0x67
and dword [0x41d7fc], 0xffff00ff
mov dword [0x41d724], eax
mov dword [0x41d6f8], ecx
mov eax, dword [0x41d9b4]
push 0xaf
mov dword [0x41d810], eax
push 0
call sub.USER32.DLL_LoadIconA
mov esi, dword [0x41d8f0]
sub edi, edi
mov eax, dword [0x41d600]
cmp dword [0x41d7c8], eax
jl 0x401d72
mov dword [0x41d6dc], esi
mov eax, dword [0x41d600]
mov dx, 8
mov dword [0x41d838], eax
mov dword [0x41d644], esi
sbb eax, dword [0x41d7e0]
mov ecx, dword [0x41d748]
mov dword [0x41d7d0], edi
push eax
push eax
call sub.USER32.DLL_IsChild
mov edx, dword [0x41d6b4]
add eax, eax
mov eax, dword [0x41d880]
cmp esi, dword [0x41d8f0]
jb 0x401db8
mov eax, dword [0x41d8fc]
mov ecx, dword [0x41d600]
sub eax, ecx
mov eax, dword [0x41d9ac]
mov dword [0x41d6d4], edx
mov dword [0x41d71c], edx
mov edi, dword [0x41d600]
mov dword [0x41d770], eax
push 0x80
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d960]
sub eax, eax
mov esi, dword [0x41d8a4]
add eax, edx
test esi, esi
je 0x401df9
mov dword [0x41d928], eax
mov edx, dword [0x41d938]
sub edi, eax
mov si, 0xdd
mov dword [0x41d874], esi
mov dword [0x41d97c], esi
mov dword [0x41d82c], edx
mov dword [0x41d658], ecx
mov dword [0x41d704], edi
push 0x41d8e0
call sub.USER32.DLL_CharNextA
mov ecx, dword [0x41d6c4]
add eax, eax
mov eax, 0x80
cmp edi, 0
je 0x401e47
mov dword [0x41d920], eax
mov eax, dword [0x41d868]
mov eax, dword [0x41d618]
sub eax, esi
mov eax, 0
mov dword [0x41d95c], eax
mov dword [0x41d850], eax
mov eax, dword [0x41d984]
mov eax, dword [0x41d650]
push edi
call sub.USER32.DLL_GetMenu
mov esi, dword [0x41d6fc]
mov ax, 0xf4
mov di, 0xcb
cmp eax, 1
je 0x401e93
mov edi, dword [0x41d628]
mov eax, dword [0x41d9dc]
mov ecx, dword [0x41d600]
mov ax, 0x80
mov dx, 0x6e
mov dword [0x41d69c], eax
mov dword [0x41d70c], esi
mov dword [0x41d624], eax
push 0x68
push 0
call sub.USER32.DLL_LoadIconA
mov edi, dword [0x41d680]
sub eax, edi
mov ecx, 0x5d
cmp ecx, 1
jb 0x401ed1
mov dword [0x41d88c], eax
mov eax, dword [0x41d658]
add eax, edx
mov edx, dword [0x41d9a8]
mov dword [0x41d910], eax
sub dword [0x41d808], 1
mov dword [0x41d93c], eax
add dword [0x41d720], 0x79
push 0x41d808
call sub.USER32.DLL_CharNextA
mov eax, dword [0x41d77c]
sub edx, esi
cmp edx, eax
jne 0x401f0a
mov eax, dword [0x41d95c]
xor ecx, eax
mov eax, dword [0x41d730]
mov dword [0x41d6e0], edx
mov dword [0x41d9b0], esi
mov eax, dword [0x41d600]
mov ecx, dword [0x41d788]
push ecx
push eax
call sub.USER32.DLL_IsChild
mov eax, dword [0x41d9d4]
add eax, esi
mov edi, dword [0x41d8f0]
mov eax, 2
cmp dword [0x41d750], 0x10
jns 0x401f53
mov dword [0x41d9ac], ecx
mov edi, dword [0x41d63c]
and ecx, edx
mov eax, dword [0x41d71c]
sub eax, edx
mov dword [0x41d824], esi
mov dword [0x41d968], edx
sub edi, dword [0x41d968]
mov dword [0x41d910], esi
push 0x41d7d4
call sub.USER32.DLL_CharNextA
mov eax, dword [0x41d9f4]
sub esi, edx
test eax, eax
jne 0x401f8d
mov dword [0x41d64c], eax
mov eax, dword [0x41d608]
xor eax, eax
mov ecx, dword [0x41d880]
sub eax, esi
mov dword [0x41d600], eax
mov eax, dword [0x41d9ac]
push 0x41d82c
call sub.USER32.DLL_CharNextA
mov ecx, dword [0x41d600]
mov edi, 0x80
mov ecx, dword [0x41d8fc]
mov di, 0x69
cmp eax, dword [0x41d600]
jbe 0x401fe4
mov eax, dword [0x41d96c]
mov edi, dword [0x41d824]
mov eax, 8
mov eax, dword [0x41d9dc]
mov esi, 0x80
mov dword [0x41d9e0], edx
mov dword [0x41d8d8], eax
mov dword [0x41d600], ecx
mov edi, dword [0x41d760]
sub ecx, eax
mov ecx, dword [0x41d614]
mov eax, 0x20
test eax, eax
jne 0x402018
mov edi, dword [0x41d600]
xor eax, edx
mov eax, dword [0x41d814]
mov dword [0x41d918], eax
mov dword [0x41d9fc], edx
mov eax, dword [0x41d954]
mov dword [0x41d9d4], eax
push str.NOTEPAD.EXE
call sub.kernel32.dll_LoadLibraryA
mov edx, eax
mov ecx, dword [0x41d7d0]
add ecx, eax
mov eax, dword [0x41d80c]
sub eax, ecx
test eax, eax
jbe 0x402050
mov dword [0x41d9cc], eax
mov ecx, dword [0x41d608]
mov cx, 0x98
mov dword [0x41d798], eax
mov dword [0x41d8ec], ecx
mov ecx, dword [edx]
inc edx
cmp ecx, dword [0x41d540]
jne 0x402056
mov edi, dword [0x41d998]
mov edi, 0x36
mov eax, dword [0x41d600]
cmp eax, dword [0x41d8c4]
jbe 0x40209a
mov esi, dword [0x41d8f0]
mov eax, dword [0x41d7b0]
sub eax, eax
mov ecx, dword [0x41d75c]
sub edi, ecx
mov dword [0x41d9c4], edi
sub dword [0x41d604], edi
mov eax, dword [0x41d8d8]
push 0xc8
call sub.USER32.DLL_IsMenu
mov ecx, dword [0x41d6d0]
mov edx, 0x40
cmp esi, edi
jg 0x4020dc
mov edx, dword [0x41d650]
mov edx, dword [0x41d8ec]
sub eax, eax
mov eax, dword [0x41d7d0]
mov dword [0x41d768], eax
mov dword [0x41d9e4], eax
sub dword [0x41d7e4], 8
push dword [0x41d94c]
call sub.USER32.DLL_GetMenu
mov esi, dword [0x41d8f4]
sub ecx, edx
mov eax, dword [0x41d9b0]
add eax, eax
cmp esi, dword [0x41d644]
je 0x402111
mov ecx, dword [0x41d64c]
sub edx, esi
mov dword [0x41d8f8], eax
mov edx, dword [0x41d850]
mov eax, dword [0x41d788]
mov eax, 0xae
mov eax, dword [0x41d7f8]
cmp eax, 0
jae 0x402153
mov dword [0x41d894], esi
mov eax, dword [0x41d8b8]
mov esi, dword [0x41d700]
mov eax, 0x74
mov eax, dword [0x41d768]
add edx, edx
mov dword [0x41d87c], eax
mov esi, dword [0x41d92c]
mov edi, dword [0x41d7e0]
push 0x94
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d6ac]
mov ax, 0x26
mov edi, dword [0x41d600]
cmp edi, dword [0x41d7f0]
jl 0x40218b
mov eax, dword [0x41d8ac]
add eax, eax
mov ax, 0xe2
mov dword [0x41d864], eax
mov dword [0x41d86c], eax
mov edi, dword [0x41d6a0]
mov eax, dword [0x41d704]
call fcn.004032b4
mov esi, dword [0x41d600]
or eax, edx
mov esi, dword [0x41d868]
cmp dword [0x41d8a0], 0x40
je 0x4021d1
mov dword [0x41d8a0], eax
mov esi, dword [0x41d8cc]
mov edx, 0xfe
mov eax, dword [0x41d960]
mov dword [0x41d994], eax
mov dword [0x41d8d8], eax
mov dword [0x41d684], ecx
push 0x85
push 0
call sub.USER32.DLL_LoadIconA
mov edx, dword [0x41d7a4]
or eax, esi
cmp dword [0x41d8fc], eax
jb 0x40221b
mov ecx, dword [0x41d69c]
mov eax, dword [0x41d988]
mov edx, 0x10
xor edi, ecx
mov dword [0x41d8a0], eax
mov dword [0x41d79c], esi
mov dword [0x41d680], eax
mov edi, dword [0x41d9f0]
call fcn.00402f9c
mov edx, dword [0x41d810]
push edx
call sub.USER32.DLL_IsMenu
mov eax, dword [0x41d798]
sub eax, edx
add edi, eax
cmp dword [0x41d720], 0xcb
jb 0x402272
mov dword [0x41d688], edx
mov eax, dword [0x41d8f0]
mov ecx, dword [0x41d778]
mov esi, 8
mov edx, dword [0x41d7e0]
mov dword [0x41d948], eax
mov dword [0x41d674], esi
mov dword [0x41d93c], eax
mov dword [0x41d7d0], eax
call fcn.00403ebc
mov eax, dword [0x41d600]
mov ax, 8
mov edx, dword [0x41d974]
cmp eax, dword [0x41d7c0]
jb 0x4022a9
mov dword [0x41d774], edx
mov eax, dword [0x41d8b0]
mov eax, 0xd5
mov edx, 8
mov dword [0x41d898], edi
mov eax, dword [0x41d8ec]
mov eax, 0x80
cmp eax, 0
jbe 0x4022dd
mov edi, dword [0x41d670]
mov eax, dword [0x41d9f8]
mov ecx, 0x20
mov ax, 0x94
mov dword [0x41d604], ecx
mov dword [0x41d7d8], eax
adc eax, dword [0x41d95c]
mov dword [0x41d9a0], eax
call fcn.004037f0
mov edi, dword [0x41d670]
add edx, ecx
cmp eax, 0
jne 0x40231b
mov edx, dword [0x41d814]
mov eax, 1
mov eax, dword [0x41d864]
mov dword [0x41d600], edi
mov dword [0x41d7d8], esi
mov dword [0x41d68c], eax
mov dword [0x41d658], esi
mov dword [0x41d8ac], edi
mov eax, dword [0x41d794]
push 0x41d658
call sub.USER32.DLL_CharNextA
mov ecx, dword [0x41d8fc]
sub edi, eax
cmp edx, 0
jne 0x402354
mov ecx, dword [0x41d600]
sub eax, esi
mov eax, dword [0x41d9b4]
mov dword [0x41d9f0], eax
mov eax, dword [0x41d600]
mov eax, dword [0x41d820]
call fcn.00402dd4
mov ecx, dword [0x41d698]
add edi, eax
mov eax, dword [0x41d634]
cmp eax, 0
je 0x40237f
mov eax, dword [0x41d848]
mov ecx, 0x6c
mov dword [0x41d6b0], eax
mov dword [0x41d600], edi
mov dword [0x41d8e4], eax
push 0x78
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d8bc]
and edx, edi
sub ecx, eax
test eax, eax
jne 0x4023c4
and edi, dword [0x41d95c]
mov eax, dword [0x41d998]
add ecx, eax
sub eax, eax
mov dword [0x41d628], eax
mov dword [0x41d874], eax
mov eax, dword [0x41d674]
mov edi, dword [0x41d754]
mov eax, dword [0x41d644]
call fcn.00403ebc
mov esi, dword [0x41d778]
sub eax, eax
cmp dword [0x41d758], 0xa7
ja 0x4023fd
mov dword [0x41d998], eax
mov esi, dword [0x41d600]
mov eax, 0x80
mov eax, dword [0x41d934]
mov dword [0x41d874], esi
mov dword [0x41d694], eax
push 0x12dd
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d8c4]
mov cx, 4
cmp edi, dword [0x41d600]
jbe 0x402446
mov dword [0x41d994], eax
mov eax, dword [0x41d8a0]
sub ecx, ecx
mov eax, dword [0x41d64c]
add ecx, edi
mov dword [0x41d8bc], eax
mov dword [0x41d8d0], eax
mov dword [0x41d870], eax
mov eax, dword [0x41d68c]
call fcn.00403bb8
push 0x6f
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d8b0]
mov esi, 2
mov ax, 1
cmp dword [0x41d90c], 0x20
jbe 0x402487
mov eax, dword [0x41d998]
mov edx, 0x10
sub dword [0x41d698], 4
mov dword [0x41d600], ecx
mov dword [0x41d738], eax
mov edi, dword [0x41d7c4]
call fcn.004032b4
mov edi, dword [0x41d9f4]
sub eax, eax
cmp edx, dword [0x41d8e8]
jbe 0x4024bc
mov dword [0x41d898], ecx
mov edx, dword [0x41d994]
add eax, eax
sub eax, ecx
mov dword [0x41d764], eax
mov dword [0x41d9e4], eax
mov dword [0x41d78c], eax
mov edi, dword [0x41d600]
add eax, eax
mov edi, dword [0x41d654]
mov si, 0xa8
cmp dword [0x41d63c], eax
jne 0x4024f8
mov eax, dword [0x41d88c]
mov ecx, dword [0x41d8a4]
mov si, 1
sub edi, eax
mov dword [0x41d910], edi
mov dword [0x41d600], esi
mov eax, dword [0x41d820]
call fcn.004037f0
mov edx, dword [0x41d6cc]
mov edi, 2
cmp ecx, dword [0x41d690]
jne 0x40253d
mov dword [0x41d91c], ecx
mov dword [0x41d868], esi
mov eax, dword [0x41d600]
sub edi, eax
xor dword [0x41d728], 0xffff00ff
mov dword [0x41d600], eax
mov esi, dword [0x41d798]
push 0x41d600
call sub.USER32.DLL_CharNextA
call fcn.004037f0
mov edx, dword [0x41d7b8]
mov edi, 6
test ecx, ecx
jo 0x402582
mov dword [0x41d954], eax
mov eax, dword [0x41d96c]
mov cx, 0xcd
mov esi, dword [0x41d9d0]
add eax, eax
mov dword [0x41d60c], esi
mov dword [0x41d618], eax
mov edi, dword [0x41d750]
mov dword [0x41d9c4], ecx
mov edx, dword [0x41d7f4]
call fcn.00403ebc
call fcn.00403ebc
sub esi, dword [0x41d760]
mov esi, 2
mov ax, 0x69
cmp dword [0x41d838], 1
jg 0x4025ce
sbb eax, dword [0x41d684]
mov edx, dword [0x41d804]
mov ecx, dword [0x41d7e0]
mov ax, 0xff
and esi, esi
mov dword [0x41d864], edx
call fcn.00401094
mov eax, dword [0x41d988]
sub eax, eax
mov edi, dword [0x41d738]
add edi, eax
cmp dword [0x41d604], eax
jp 0x402609
mov ecx, dword [0x41d868]
sub eax, esi
mov edx, dword [0x41d8d8]
mov dword [0x41d930], eax
add dword [0x41d6b4], eax
mov dword [0x41d928], edi
mov dword [0x41d86c], esi
push 0x99
mov dword [0x41d718], ecx
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x41d9d4]
or eax, edx
mov eax, dword [0x41d600]
cmp dword [0x41d684], 0x40
jg 0x402657
mov dword [0x41d7d8], eax
mov edi, dword [0x41d600]
or eax, eax
add edi, eax
mov dword [0x41d8f8], edx
mov dword [0x41d954], edx
mov ecx, dword [0x41d6e8]
mov edi, dword [0x41d9dc]
mov ecx, dword [0x41d600]
call fcn.004032b4
mov edx, dword [0x41d790]
mov eax, 0x41
test edx, edx
jb 0x4026a7
xor edx, dword [0x41d6ec]
mov dword [0x41d7a8], edi
mov ecx, dword [0x41d850]
sub ecx, eax
mov eax, dword [0x41d88c]
mov ecx, 0xe0
mov dword [0x41d7b8], edi
mov dword [0x41d628], ecx
and ecx, dword [0x41d60c]
mov ecx, dword [0x41d824]
mov eax, dword [0x41d684]
sub edx, edi
cmp dword [0x41d7d8], eax
jne 0x4026e0
mov esi, dword [0x41d790]
mov edi, dword [0x41d954]
mov ecx, dword [0x41d988]
add eax, eax
mov dword [0x41d934], eax
mov dword [0x41d918], ecx
mov eax, dword [0x41d8d0]
mov dword [0x41d77c], ecx
call fcn.004038cc
mov eax, dword [0x41d600]
mov cx, 4
mov ax, 1
cmp dword [0x41d600], eax
jne 0x402729
mov dword [0x41d82c], eax
mov edi, dword [0x41d9a8]
mov eax, dword [0x41d65c]
mov edx, 8
mov ecx, dword [0x41d6c4]
mov si, 0x10
mov dword [0x41d8c8], eax
mov dword [0x41d780], eax
mov eax, dword [0x41d784]
pop ebp
ret