Function at 0x401302
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x406f20
push 0xffffffffffffffff
push 0x47c258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x498714]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
lea edi, [esi + 0x130]
mov dword [esp + 0x38], 0
test edi, edi
je 0x4071d9
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4071d9
mov ecx, edi
call fcn.00401230
mov ebx, eax
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.004013ca
cmp bx, 0xb
mov dword [esp + 0x14], eax
jg 0x4071d9
test bx, bx
je 0x4071d9
mov edx, dword [esi + 0x19c]
push ebp
movsx ecx, bx
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
movsx edx, ax
mov eax, dword [esi + 0x198]
lea ebp, [ecx + edx - 0xb]
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x40702e
mov ebx, dword [esi + 0x3c]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x60]
test eax, eax
mov dword [esp + 0x14], eax
je 0x407028
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov ebp, eax
mov eax, dword [esi + 0x198]
test eax, eax
jle 0x406ff1
mov cl, byte [esi + 0x18c]
dec eax
push eax
push ecx
mov ecx, ebp
call fcn.004012ad
mov edx, dword [esi + 0x198]
mov al, byte [esi + 0x18c]
push edx
push eax
mov ecx, ebp
call fcn.004012ad
mov ecx, dword [esi + 0x198]
mov dl, byte [esi + 0x18c]
inc ecx
push ecx
push edx
mov ecx, ebp
call fcn.004012ad
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x406fc9
mov ebp, dword [esp + 0x1c]
mov dword [esi + 0x198], ebp
mov ecx, dword [esi + 0x14c]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x24]
push eax
push ecx
call ebx
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.0044e2f0
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0044d88e
mov ebp, eax
push 0x58
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [ebp + 8]
push 0x5a
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebp, dword [esp + 0x20]
mov ecx, edi
push ebp
call fcn.00401253
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040156e
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004015c3
push ebp
mov ecx, edi
call fcn.0040108c
mov eax, dword [esi + 0x14c]
lea edx, [esp + 0x24]
push edx
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.004012c6
mov eax, dword [eax]
mov byte [esp + 0x3c], 1
push eax
call fcn.00415e2d
add esp, 4
lea edx, [esp + 0x10]
push eax
push 0x498070
push edx
call fcn.00433dc2
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.00443232
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.004012c6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.0044336b
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.00443232
push 0x20
lea ecx, [esp + 0x14]
call fcn.00434036
push 0x20
lea ecx, [esp + 0x14]
call fcn.00433f40
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x16c]
call fcn.0044336b
mov al, byte [esi + 0x184]
pop ebp
test al, al
je 0x40718e
mov edi, dword [esp + 0x18]
xor edx, edx
mov dl, byte [esi + 0x18d]
lea eax, [esi + 0x174]
add edx, edi
push edx
push 0x4981f0
push eax
call fcn.00433dc2
xor ecx, ecx
add esp, 0xc
mov cl, byte [esi + 0x18d]
add ecx, 0xffff
cmp edi, ecx
jle 0x407185
mov ecx, esi
call fcn.00401145
push 0
mov ecx, esi
call fcn.00440e82
push 0
mov ecx, esi
call fcn.00440e82
add esi, 0xf4
mov ecx, esi
call fcn.00441ea4
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call edi
push 1
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00441dab
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00443232
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret