Function at 0x412610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4279ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x88
call fcn.00412490
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x405958
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x1f
ja case.0x41266d.1
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [ecx + 0x412929]
jmp dword [eax*4 + 0x412921]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 0x70], eax
jmp 0x412689
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x70], 4
mov ecx, dword [ebp - 0x14]
call fcn.00413262
test eax, eax
jne 0x4126ba
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0xcc0020
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov eax, 0x3e8
xor edx, edx
div dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0xc], cl
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebp - 0x14]
mov eax, 0x20
cdq
idiv dword [ecx + 0x70]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x24], al
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x48], eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x60], 0
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x70]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00412e2d
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x70]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00412e2d
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x68], eax
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x70]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00412e2d
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 0x14]
add edx, 0x5c
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x54], eax
push 0
push 0
mov edx, dword [ebp - 0x14]
add edx, 0x60
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x58], eax
push 0
push 0
mov edx, dword [ebp - 0x14]
add edx, 0x78
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x4c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x48]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x84]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x28]
push edx
push 0
push 0
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + 0x14]
shl eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
mov esi, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
xor edx, edx
div dword [esi + 0x2c]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x30]
mov al, byte [esp + 0x13]
add edx, esi
cmp byte [edx + ebp], al
jne 0x422a98
mov al, byte [esp + 0x28]
cmp byte [edx + ebp - 1], al
jne 0x422a98
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x422a98
mov al, byte [edx + 1]
inc edx
cmp al, byte [ecx + 1]
jne 0x422a98
add ecx, 2
inc edx
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
add dh, byte [ebp + 0x43]
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
mov al, byte [ecx + 1]
inc ecx
inc edx
cmp al, byte [edx]
jne 0x422a68
cmp ecx, ebx
jb 0x422a1c
mov edx, ecx
lea ecx, [ebx - 0x102]
sub edx, ebx
add edx, 0x102
cmp edx, ebp
jle 0x422a98
mov eax, dword [esp + 0x18]
mov dword [edi + 0x68], esi
cmp edx, eax
mov ebp, edx
jge 0x422abd
mov al, byte [edx + ecx - 1]
mov dl, byte [edx + ecx]
mov byte [esp + 0x28], al
mov byte [esp + 0x13], dl
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x38]
and edx, esi
xor esi, esi
mov si, word [eax + edx*2]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jbe 0x422abd
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4229e1
mov eax, dword [esp + 0x20]
cmp ebp, eax
ja 0x422ac7
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret