Function at 0x403170
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x423568]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x409
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0x409
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 1
push 0xa
call fcn.0040961a
add esp, 8
lea esi, [eax + 8]
cmp dword [esi - 8], 0x105
lea ebx, [esi - 8]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x10], ebx
jl 0x4031ee
mov eax, esi
mov dword [esp + 0x18], esi
mov ebx, esi
mov dword [esp + 0x58], eax
mov edx, esi
mov dword [esp + 0x1c], esi
mov ecx, esi
mov dword [esp + 0x20], esi
mov edi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
jmp 0x403272
push 1
push 0x214
call fcn.0040961a
mov edi, dword [ebx]
add esp, 8
lea ebx, [eax + 8]
test edi, edi
jle 0x403218
lea eax, [edi*2 + 2]
push eax
push esi
push ebx
call fcn.00407900
add esp, 0xc
push dword [esp + 0x10]
mov esi, ebx
call fcn.00409bd0
xor ecx, ecx
mov dword [esp + 0x60], esi
add esp, 4
mov dword [ebx - 4], 0x214
test edi, edi
cmovns ecx, edi
lea eax, [ecx*2 + 2]
cmp eax, 0x214
jge 0x403249
mov dword [ebx - 8], ecx
mov eax, dword [ebx - 8]
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x18], ebx
mov edi, ebx
mov dword [esp + 0x1c], ebx
mov word [ebx + eax*2], cx
mov eax, ebx
mov ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
cmp dword [ebx - 4], 0x20c
jle 0x40329a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [edx - 8], 0x105
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], edx
mov eax, dword [eax - 8]
xor edx, edx
push 0x104
push esi
push edx
mov word [ecx + eax*2], dx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4032b3
mov ebx, dword [esp + 0x58]
sub edi, ecx
sar edi, 1
mov ecx, 0x424ce0
push edi
mov dword [ebx - 8], edi
call fcn.00401e70
mov eax, dword [ebx - 8]
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x18]
push dword [0x424ce0]
call fcn.00407900
mov eax, dword [ebx - 8]
add esp, 0xc
or edx, 0xffffffff
test eax, eax
jle 0x403313
lea ecx, [eax - 1]
lea ecx, [esi + ecx*2]
dec eax
cmp word [ecx], 0x5c
je 0x403311
sub ecx, 2
test eax, eax
jg 0x403301
jmp 0x403313
mov edx, eax
lea eax, [edx + 1]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
call fcn.00401f30
mov esi, eax
mov ecx, dword [esi]
push dword [ecx - 8]
lea ecx, [esp + 0x60]
call fcn.00401e70
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push dword [esp + 0x64]
call fcn.00407900
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40335e
add eax, 0xfffffff8
push eax
call fcn.00409bd0
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.0040961a
add eax, 8
add esp, 8
mov dword [esi], eax
mov ecx, esi
mov eax, dword [0x424ce0]
push dword [eax - 8]
call fcn.00401e70
mov eax, dword [0x424ce0]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push dword [esi]
call fcn.00407900
add esp, 0xc
mov ecx, 0x424d08
call fcn.00402810
mov esi, dword [0x424d28]
push 1
push 0xa
call fcn.0040961a
add eax, 8
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
add esp, 8
mov eax, dword [esi + 0x84]
push dword [eax - 8]
call fcn.00401e70
mov ecx, dword [esi + 0x84]
mov edi, dword [esp + 0x58]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push edi
call fcn.00407900
mov edx, dword [edi - 8]
add esp, 0xc
test edx, edx
js 0x403493
or esi, 0xffffffff
cmp edx, 1
jl 0x403493
xor eax, eax
mov ecx, edi
nop
cmp word [ecx], 0x5c
je 0x403420
inc eax
add ecx, 2
cmp eax, edx
jl 0x403410
jmp 0x403422
mov esi, eax
test esi, esi
js 0x403493
or ecx, 0xffffffff
xor eax, eax
nop dword [eax + eax]
cmp word [edi], 0x5c
je 0x403440
inc eax
add edi, 2
cmp eax, edx
jl 0x403430
jmp 0x403442
mov ecx, eax
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
call fcn.00401f30
mov esi, eax
mov ecx, dword [esi]
push dword [ecx - 8]
mov ecx, 0x424ce8
call fcn.00401e70
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push dword [0x424ce8]
call fcn.00407900
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40348d
add eax, 0xfffffff8
push eax
call fcn.00409bd0
add esp, 4
mov edi, dword [esp + 0x58]
jmp 0x4034b8
push edx
mov ecx, 0x424ce8
call fcn.00401e70
mov eax, dword [edi - 8]
lea eax, [eax*2 + 2]
push eax
push edi
push dword [0x424ce8]
call fcn.00407900
add esp, 0xc
mov eax, dword [0x424d28]
push 1
push dword [eax + 8]
call fcn.0040961a
add esp, 8
mov esi, eax
mov ecx, 0x424d08
push esi
sub esp, 8
call fcn.00402ec0
lea ebx, [esi + 0x10]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4034e2
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, 0x424cf0
call fcn.00401e70
mov eax, dword [0x424cf0]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call fcn.00407900
mov eax, dword [0x424cf0]
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403530
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, 0x424ce4
call fcn.00401e70
mov eax, dword [0x424ce4]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call fcn.00407900
mov eax, dword [0x424ce4]
add esp, 0xc
mov ecx, dword [eax - 8]
mov eax, dword [0x424cf0]
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 0x403580
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, 0x424cf8
call fcn.00401e70
mov eax, dword [0x424cf8]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call fcn.00407900
add esp, 0xc
push esi
call fcn.00409bd0
mov eax, dword [0x424cf8]
add esp, 4
mov ecx, 0x4192e8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4035ed
test dx, dx
je 0x4035e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4035ed
add eax, 4
add ecx, 4
test dx, dx
jne 0x4035c7
xor eax, eax
jmp 0x4035f2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403627
mov eax, dword [0x424ce8]
mov ecx, 0x424cf8
push dword [eax - 8]
call fcn.00401e70
mov eax, dword [0x424ce8]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push dword [0x424cf8]
call fcn.00407900
add esp, 0xc
mov ecx, dword [0x424d28]
xorps xmm0, xmm0
mov edx, dword [0x424d2c]
movlpd qword [0x424d18], xmm0
cmp ecx, edx
je 0x403655
push ecx
call fcn.004051a0
mov eax, dword [0x424d28]
add esp, 4
mov dword [0x424d2c], eax
push 1
push 0xa
call fcn.0040961a
add eax, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
add esp, 8
mov eax, dword [0x424cf8]
mov eax, dword [eax - 8]
add eax, 0xa
push eax
call fcn.00401e70
mov eax, dword [0x424cf8]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push esi
call fcn.00407900
mov eax, dword [0x424cf8]
lea ebx, [esi - 8]
movups xmm0, xmmword [0x41931c]
add esp, 0xc
mov eax, dword [eax - 8]
movups xmmword [esi + eax*2], xmm0
lea ecx, [esi + eax*2]
mov eax, dword [0x41932c]
mov dword [ecx + 0x10], eax
mov ecx, 0x424d74
push dword [ebx]
call fcn.00401e70
mov eax, dword [ebx]
add eax, eax
push eax
push esi
push dword [0x424d74]
call fcn.00407900
add esp, 0xc
push ebx
call fcn.00409bd0
mov eax, dword [0x424d74]
xor edx, edx
add esp, 4
cmp dword [eax - 8], edx
jle 0x403711
nop dword [eax]
movzx ebx, word [eax + edx*2]
lea esi, [eax + edx*2]
lea ecx, [ebx - 0x61]
cmp cx, 0x19
ja 0x40370b
lea eax, [ebx - 0x20]
mov word [esi], ax
mov eax, dword [0x424d74]
inc edx
cmp edx, dword [eax - 8]
jl 0x4036f0
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 + 0x24]
xorps xmm0, xmm0
push 0x6b
push ebx
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x38], 0x403a80
mov dword [esp + 0x58], str.dlg1
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 6
mov dword [esp + 0x30], 3
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [0x424ca0], ebx
call esi
sub eax, 0xc8
cdq
sub eax, edx
mov ebx, eax
push 0
sar ebx, 1
call esi
push 0
push dword [esp + 0x28]
sub eax, 0x267
push 0
push 0
push 0xc8
push 0x267
cdq
push ebx
sub eax, edx
sar eax, 1
push eax
push 0xca0000
push dword [0x424d74]
push str.dlg1
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x424cb4], eax
test eax, eax
jne 0x40380b
xor esi, esi
jmp 0x403868
call fcn.004038b0
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x60]
push 0
push 0
push 0
push eax
mov dword [0x424d20], 1
mov dword [0x424d24], 0
call esi
test eax, eax
je 0x403864
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call ebx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
jne 0x403841
mov esi, dword [esp + 0x68]
test edi, edi
je 0x403878
add edi, 0xfffffff8
push edi
call fcn.00409bd0
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40388c
add eax, 0xfffffff8
push eax
call fcn.00409bd0
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004065da
mov esp, ebp
pop ebp
ret 0x10