Function at 0x403690
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x41b00c]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x409
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0x409
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 1
push 0xa
call fcn.00408f80
add esp, 8
lea ecx, [esp + 0x4c]
add eax, 8
mov dword [esp + 0x4c], eax
push 0x104
push 0x105
call fcn.004024a0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [esp + 0x4c]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403700
sub ecx, edx
sar ecx, 1
mov dword [esi - 8], ecx
push ecx
mov ecx, 0x423d08
call fcn.004024a0
mov eax, dword [esi - 8]
lea eax, [eax*2 + 2]
push eax
push esi
push dword [0x423d08]
call fcn.004074d0
mov eax, dword [esi - 8]
add esp, 0xc
or edx, 0xffffffff
test eax, eax
jle 0x403759
lea ecx, [esi - 2]
lea ecx, [ecx + eax*2]
dec eax
cmp word [ecx], 0x5c
je 0x403757
sub ecx, 2
test eax, eax
jg 0x403747
jmp 0x403759
mov edx, eax
lea eax, [edx + 1]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x54]
call fcn.00402560
mov esi, eax
mov ecx, dword [esi]
push dword [ecx - 8]
lea ecx, [esp + 0x50]
call fcn.004024a0
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push dword [esp + 0x54]
call fcn.004074d0
mov eax, dword [esp + 0x54]
add esp, 0xc
test eax, eax
je 0x4037a4
add eax, 0xfffffff8
push eax
call fcn.00409211
add esp, 4
push 0
push 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
push 1
push 0xa
mov dword [esi], 0
call fcn.00408f80
add eax, 8
add esp, 8
mov dword [esi], eax
mov ecx, esi
mov eax, dword [0x423d08]
push dword [eax - 8]
call fcn.004024a0
mov eax, dword [0x423d08]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push dword [esi]
call fcn.004074d0
add esp, 0xc
mov ecx, 0x423d30
call fcn.00402de0
mov esi, dword [0x423d50]
push 1
push 0xa
call fcn.00408f80
add eax, 8
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
add esp, 8
mov eax, dword [esi + 0x84]
push dword [eax - 8]
call fcn.004024a0
mov ecx, dword [esi + 0x84]
mov edi, dword [esp + 0x48]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push edi
call fcn.004074d0
mov edx, dword [edi - 8]
add esp, 0xc
test edx, edx
js 0x403862
cmp edx, 1
jl 0x403862
xor eax, eax
mov ecx, edi
nop word [eax + eax]
cmp word [ecx], 0x5c
je 0x4039ce
inc eax
add ecx, 2
cmp eax, edx
jl 0x403850
push edx
mov ecx, 0x423d10
call fcn.004024a0
mov eax, dword [edi - 8]
lea eax, [eax*2 + 2]
push eax
push edi
push dword [0x423d10]
call fcn.004074d0
add esp, 0xc
mov eax, dword [0x423d50]
push 1
push dword [eax + 8]
call fcn.00408f80
add esp, 8
mov esi, eax
mov ecx, 0x423d30
push esi
sub esp, 8
call fcn.00403380
lea ebx, [esi + 0x10]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4038b1
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, 0x423d18
call fcn.004024a0
mov eax, dword [0x423d18]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call fcn.004074d0
mov eax, dword [0x423d18]
add esp, 0xc
mov ebx, dword [eax - 8]
add ebx, 9
lea ebx, [esi + ebx*2]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403900
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, 0x423d0c
call fcn.004024a0
mov eax, dword [0x423d0c]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call fcn.004074d0
mov eax, dword [0x423d0c]
add esp, 0xc
mov ecx, dword [eax - 8]
mov eax, dword [0x423d18]
add ecx, 0xa
add ecx, dword [eax - 8]
lea ebx, [esi + ecx*2]
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403950
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, 0x423d20
call fcn.004024a0
mov eax, dword [0x423d20]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call fcn.004074d0
add esp, 0xc
push esi
call fcn.00409211
mov eax, dword [0x423d20]
add esp, 4
mov ecx, 0x4185f4
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403a46
test dx, dx
je 0x4039ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403a46
add eax, 4
add ecx, 4
test dx, dx
jne 0x4039a0
xor eax, eax
jmp 0x403a4b
test eax, eax
js 0x403862
or ecx, 0xffffffff
xor eax, eax
nop dword [eax + eax]
cmp word [edi], 0x5c
je 0x4039f0
inc eax
add edi, 2
cmp eax, edx
jl 0x4039e0
jmp 0x4039f2
mov ecx, eax
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.00402560
mov esi, eax
mov ecx, dword [esi]
push dword [ecx - 8]
mov ecx, 0x423d10
call fcn.004024a0
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push dword [0x423d10]
call fcn.004074d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x403a3d
add eax, 0xfffffff8
push eax
call fcn.00409211
add esp, 4
mov edi, dword [esp + 0x48]
jmp 0x403887
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403a80
mov eax, dword [0x423d10]
mov ecx, 0x423d20
push dword [eax - 8]
call fcn.004024a0
mov eax, dword [0x423d10]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push dword [0x423d20]
call fcn.004074d0
add esp, 0xc
mov edx, dword [0x423d54]
xorps xmm0, xmm0
push ecx
mov ecx, dword [0x423d50]
movlpd qword [0x423d40], xmm0
call fcn.00405910
mov eax, dword [0x423d50]
add esp, 4
mov dword [0x423d54], eax
push 1
push 0xa
call fcn.00408f80
add eax, 8
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
add esp, 8
mov eax, dword [0x423d20]
mov eax, dword [eax - 8]
add eax, 0xa
push eax
call fcn.004024a0
mov eax, dword [0x423d20]
mov esi, dword [esp + 0x48]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push esi
call fcn.004074d0
mov eax, dword [0x423d20]
lea ebx, [esi - 8]
movups xmm0, xmmword [0x41861c]
add esp, 0xc
mov eax, dword [eax - 8]
movups xmmword [esi + eax*2], xmm0
lea ecx, [esi + eax*2]
mov eax, dword [0x41862c]
mov dword [ecx + 0x10], eax
mov ecx, 0x423d94
push dword [ebx]
call fcn.004024a0
mov eax, dword [ebx]
add eax, eax
push eax
push esi
push dword [0x423d94]
call fcn.004074d0
add esp, 0xc
push ebx
call fcn.00409211
add esp, 4
call fcn.004027d0
push str.MS_Shell_Dlg
push 0x40
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0xfffffffffffffff4
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ebx, dword [esp + 0x14]
xorps xmm0, xmm0
push 0x6b
push ebx
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x28], 0x403ea0
mov dword [esp + 0x48], str.dlg1
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 6
push eax
mov dword [esp + 0x20], 3
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push ebx
push 0
push 0
push 0xc8
push 0x267
push 1
mov dword [0x423cc8], ebx
call esi
sub eax, 0xc8
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call esi
sub eax, 0x267
cdq
sub eax, edx
sar eax, 1
push eax
push 0xca0000
push dword [0x423d94]
push str.dlg1
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x423cdc], eax
test eax, eax
jne 0x403c2f
xor esi, esi
jmp 0x403c8c
call fcn.00403cd0
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x50]
push 0
push 0
push 0
push eax
mov dword [0x423d48], 1
mov dword [0x423d4c], 0
call esi
test eax, eax
je 0x403c88
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x50]
push eax
call ebx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call esi
test eax, eax
jne 0x403c65
mov esi, dword [esp + 0x58]
test edi, edi
je 0x403c9c
add edi, 0xfffffff8
push edi
call fcn.00409211
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x403cb0
add eax, 0xfffffff8
push eax
call fcn.00409211
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405d07
mov esp, ebp
pop ebp
ret 0x10