Function at 0x407420
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
cmp ecx, esi
jbe 0x40743c
sub ecx, esi
mov edi, esi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2c]
lea ecx, [edi + 4]
cmp ecx, edi
jbe 0x407451
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x20]
cmp ecx, edi
jbe 0x40746a
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ebx, dword [esp + 0x44]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x407494
push 0x7f00
push 0
jmp 0x40749b
and eax, 0xffff
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x2c], eax
lea edi, [esi + 8]
mov eax, 0x4076c0
push ebp
mov ebp, dword [esp + 0x5c]
sub eax, edi
sub eax, 0xa
push 0xa
push edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebp
mov byte [edi], 0xb9
mov dword [edi + 1], esi
mov byte [edi + 5], 0xe9
mov dword [edi + 6], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edx, dword [esp + 0x4c]
lea edi, [esi + 0x30]
mov eax, edi
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x54]
push eax
push 0
push ecx
push edi
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
mov edi, dword [edi]
mov ecx, dword [esi + 0x38]
push 0
push ebx
push 0
sub edx, eax
push 0
sub ecx, edi
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
push edi
push edx
push eax
push ebp
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 4], eax
mov edx, dword [esi]
test eax, eax
setne bl
or edx, 1
pop ebp
mov ecx, edx
mov dword [esi], edx
or ecx, 2
test bl, bl
mov dword [esi], ecx
je 0x4075e7
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4075bb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edi, [esi + 0x2c]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], eax
lea ecx, [edi + 4]
cmp ecx, edi
jbe 0x4075bb
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 0x13
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov eax, dword [esi]
je 0x4075cd
or al, 0x10
jmp 0x4075cf
and al, 0xef
mov edi, dword [esp + 0xc]
mov dword [esi], eax
lea ecx, [edi + 0x20]
cmp ecx, edi
jbe 0x4075e7
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x34
ret 0x1c