Function at 0x401330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b0
mov eax, dword [0x41f5b4]
mov dword [esp + 0x2a8], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ebx
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edi
mov dword [esp + 0x38], eax
xor esi, esi
push esi
lea ecx, [esp + 0x164]
mov dword [esp + 0x40], eax
call dword [sym.imp.perun.dll_public:_void___thiscall_PTexture::constructor_char_const__]
mov dword [esp + 0x2c4], esi
mov dword [esp + 0xc], esi
mov ebx, 1
push 0x30
mov byte [esp + 0x2c8], bl
call fcn.00407720
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov byte [esp + 0x2c4], 2
je 0x4013c8
mov ecx, eax
call fcn.004051d0
mov esi, eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], ecx
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x2c8], bl
call fcn.004012c0
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x2d0], 3
call fcn.00405400
mov edi, eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
mov byte [esp + 0x2c4], bl
je 0x40141b
push eax
call fcn.00407555
add esp, 4
test edi, edi
je 0x401452
test esi, esi
je 0x401433
mov ecx, esi
call fcn.004052c0
push esi
call fcn.00407662
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x2c4], 0xffffffff
call dword [sym.imp.perun.dll_public_virtual:_void___thiscall_PTexture::destructor_void_]
mov eax, edi
jmp 0x4015a2
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0xc], eax
je 0x401471
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
mov ebx, dword [sym.imp.winmm.dll_timeGetTime]
call ebx
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x164]
call dword [sym.imp.perun.dll_public:_void___thiscall_PTexture::SetCustomData_void__]
call dword [sym.imp.perun.dll_PerunInputIsAnyKeyDown]
test al, al
jne 0x40154a
call dword [sym.imp.perun.dll_PerunInputUpdate]
call ebx
sub eax, edi
cmp eax, 0x3e8
jbe 0x4014b9
call ebx
mov edi, eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x24]
fld qword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x40154a
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x40151b
cmp dword [esp + 0x28], 0x12
je 0x40154a
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.user32.dll_GetMessageA]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.user32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_DispatchMessageA]
push 0xa
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x164]
push edx
push eax
call fcn.00401200
add esp, 0xc
call dword [sym.imp.perun.dll_PerunInputIsAnyKeyDown]
test al, al
je 0x4014a4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov ecx, esi
call fcn.004052c0
push esi
call fcn.00407662
add esp, 4
push 0
lea ecx, [esp + 0x164]
call dword [sym.imp.perun.dll_public:_void___thiscall_PTexture::SetCustomData_void__]
mov eax, dword [esp + 0xc]
test eax, eax
mov byte [esp + 0x2c4], 0
je 0x401588
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x160]
mov dword [esp + 0x2c4], 0xffffffff
call dword [sym.imp.perun.dll_public_virtual:_void___thiscall_PTexture::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2b4]
call fcn.0040725a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret