Function at 0x10126437
Capabilities:
Authenticate hmac
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x5e4]
sub esp, 0x664
mov eax, dword [0x1019c828]
xor eax, ebp
mov dword [ebp + 0x5e0], eax
mov eax, dword [ebp + 0x5f0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x5f4]
push ebx
mov ebx, dword [ebp + 0x5fc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [eax]
push esi
mov dword [ebp - 0x50], eax
mov esi, eax
mov eax, dword [ebx + 0xc]
xor edx, edx
cmp eax, edx
push edi
mov edi, dword [ebp + 0x5ec]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
je 0x10126495
mov dword [eax + 0x90], edx
mov eax, dword [ebx]
cmp eax, edx
je 0x1012649e
mov word [eax], dx
cmp ecx, edx
je 0x101264ac
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0xc8]
mov eax, dword [ebp + 0x5f8]
and eax, 0x10
mov dword [ebp - 0x60], eax
jne 0x101264d3
cmp dword [ebp - 0x44], 0
je 0x101264d3
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push 0x1015f2b8
push 0
push eax
call dword [ecx + 0x18]
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
test byte [ebp + 0x5f8], 1
mov dword [ebp - 0x54], eax
jne 0x101264f1
cmp dword [ebp - 0x34], 0
jne 0x1012651b
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x80], 0
and dword [ebp - 0x7c], 0
and eax, 0xfffffffb
or eax, 0x1b
and eax, 0xffffffef
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp - 0x78], ecx
call sym.rt3d.dll_class_FILETYPE____stdcall_e3GetFileFormat_class_e3_STREAM___struct_FTINFO__
mov dword [ebp - 0x40], eax
call sub.KERNEL32.dll_GetTickCount
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x6c]
call fcn.100feb87
test esi, esi
jne 0x1012661a
push ebx
call sym.rt3d.dll_public:_static_class_e3_SCENE____stdcall_e3_SCENE::Create_void__
cmp dword [ebp - 0x60], 0
mov esi, eax
mov eax, dword [ebp - 0x64]
mov dword [eax], esi
je 0x10126558
or dword [esi + 0x130], 0x10
test byte [ebp + 0x5f8], 0x20
je 0x1012656b
or dword [esi + 0x130], 0x100000
mov eax, dword [ebx]
mov dword [esi + 0x194], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x10126588
mov eax, dword [esi]
push 0xd
push ebx
push 0x12f
push esi
call dword [eax + 0x18]
mov eax, dword [edi]
push edi
call dword [eax + 0x30]
mov eax, dword [edi]
push edi
call dword [eax + 0x30]
lea ecx, [esi + 0x180]
push ecx
mov dword [esi + 0x178], eax
mov eax, dword [edi]
push edi
call dword [eax + 0xec]
mov eax, dword [edi]
push 0
push 0x104
lea ecx, [ebp + 0x1d0]
push ecx
push edi
call dword [eax + 0x88]
test al, al
je 0x101265d8
lea eax, [ebp + 0x1d0]
push eax
lea eax, [esi + 0xe4]
push eax
call sym.rt3d.dll_public:_bool___stdcall_e3_STRING::Set_unsigned_short_int_const__
test byte [ebp + 0x5f8], 2
je 0x10126607
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
movzx ecx, ax
test cx, cx
setl dl
lea eax, [esi + 0x130]
shl edx, 0xb
xor edx, dword [eax]
and edx, 0x800
xor dword [eax], edx
test byte [ebp + 0x5f8], 8
je 0x1012661a
or dword [esi + 0x130], 0x800
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
push 0x36
add ebx, 0x18
call fcn.100fe3dc
push eax
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [ebx]
add esp, 0x10
cmp dword [esi + 0x198], 0
mov byte [ebp - 0x39], 0
jne 0x1012664e
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x198], eax
mov byte [ebp - 0x39], 1
test word [ebp + 0x5f8], 0x180
je 0x101266a3
push 0x10
push 0x20
call sym.rt3d.dll_public:_static_class_e3_COLLECTION____stdcall_e3_COLLECTION::Create_int__int_
and dword [ebp - 0x38], 0
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xb8]
cmp dword [eax + 0x1c], 0
jle 0x101266a3
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
mov eax, dword [esi + 0xb8]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
add ebx, 0x30
call dword [ecx + 0x10]
push eax
push dword [ebp - 0x48]
call dword [ebx]
inc dword [ebp - 0x38]
mov eax, dword [esi + 0xb8]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x1c]
jl 0x10126675
mov eax, dword [ebp + 0x5f8]
and eax, 0x200
mov dword [ebp - 0x70], eax
je 0x101266d5
mov eax, dword [ebp - 0x4c]
push dword [eax + 8]
push esi
push edi
push 0xb
push dword [ebp - 0x40]
call sym.rt3d.dll_public:_unsigned_int___stdcall_FILETYPE::Func3d_unsigned_int__class_e3_STREAM___class_e3_SCENE___class_e3_interface__
test eax, eax
je 0x101266d5
mov dword [ebp - 0x38], 0xfffffff9
jmp 0x101268cb
mov eax, dword [ebp - 0x4c]
push dword [eax + 8]
xor ebx, ebx
push esi
push edi
inc ebx
push ebx
push dword [ebp - 0x40]
call sym.rt3d.dll_public:_unsigned_int___stdcall_FILETYPE::Func3d_unsigned_int__class_e3_STREAM___class_e3_SCENE___class_e3_interface__
test dword [esi + 0x130], 0x20000000
mov dword [ebp - 0x54], eax
je 0x10126701
mov dword [ebp - 0x38], 0xfffffff4
jmp 0x10126718
cmp byte [esi + 0x30a], 0
je 0x10126715
mov ecx, dword [esi + 0x30c]
mov dword [ebp - 0x38], ecx
jmp 0x10126718
mov dword [ebp - 0x38], ebx
xor ecx, ecx
cmp eax, ecx
jne 0x101268ad
mov eax, dword [esi + 0xb8]
cmp dword [eax + 0x1c], ecx
jne 0x101268ad
cmp dword [ebp - 0x38], ecx
jle 0x101268ad
mov eax, dword [edi]
push ecx
push 0x104
lea ecx, [ebp + 0x3d8]
push ecx
push edi
call dword [eax + 0x88]
test al, al
je 0x101268ad
mov ebx, dword [sym.imp.MSVCR80.dll_wcsrchr]
lea eax, [ebp + 0x3d8]
push 0x5c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10126777
lea eax, [ebp + 0x3d8]
jmp 0x10126779
inc eax
inc eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x3d8]
push 0x2e
push eax
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
je 0x10126794
add dword [ebp - 0x58], 2
mov eax, dword [0x10327408]
and dword [ebp - 0x34], 0
add eax, 0x20
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], 0
jle 0x1012689e
cmp dword [ebp - 0x54], 0
jne 0x1012689e
mov eax, dword [eax]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ebx, eax
cmp dword [ebp - 0x40], ebx
je 0x10126865
mov eax, dword [ebx + 4]
test ax, 0x800
je 0x10126865
cmp al, 1
jne 0x10126865
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push ebx
call sym.rt3d.dll_public:_bool___stdcall_FILETYPE::IsFileOfThisType_unsigned_short_int_const___unsigned_short_int_const__
test al, al
je 0x10126865
mov eax, dword [edi]
push str.E3_FILESTREAM
push edi
call dword [eax + 0x14]
test al, al
je 0x10126809
mov eax, dword [edi]
push edi
call dword [eax + 0xf0]
mov eax, dword [edi]
push 0
push 0
push edi
call dword [eax + 0x28]
cmp dword [ebp - 0x70], 0
je 0x10126831
mov eax, dword [ebp - 0x4c]
push dword [eax + 8]
push esi
push edi
push 0xb
push ebx
call sym.rt3d.dll_public:_unsigned_int___stdcall_FILETYPE::Func3d_unsigned_int__class_e3_STREAM___class_e3_SCENE___class_e3_interface__
test eax, eax
jne 0x101266c9
mov eax, dword [ebp - 0x4c]
push dword [eax + 8]
push esi
push edi
push 1
push ebx
call sym.rt3d.dll_public:_unsigned_int___stdcall_FILETYPE::Func3d_unsigned_int__class_e3_STREAM___class_e3_SCENE___class_e3_interface__
test dword [esi + 0x130], 0x20000000
mov dword [ebp - 0x54], eax
jne 0x10126880
cmp byte [esi + 0x30a], 0
jne 0x10126889
mov eax, dword [esi + 0xb8]
cmp dword [eax + 0x1c], 0
jne 0x10126894
mov eax, dword [0x10327408]
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
add eax, 0x20
mov ecx, dword [eax]
cmp edx, dword [ecx + 0x1c]
jl 0x101267ac
jmp 0x1012689e
mov dword [ebp - 0x38], 0xfffffff4
jmp 0x1012689e
mov eax, dword [esi + 0x30c]
mov dword [ebp - 0x38], eax
jmp 0x1012689e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 1
cmp byte [ebp - 0x39], 0
je 0x101268ad
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x198], eax
and dword [esi + 0x194], 0
lea eax, [esi + 0x14c]
cmp dword [eax], 0
jne 0x101268cb
mov ecx, dword [ebp - 0x40]
push dword [ecx + 0xc]
push eax
call sym.rt3d.dll_public:_bool___stdcall_e3_STRING::Set_unsigned_short_int_const__
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx]
push 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call dword [eax + 0xc]
test word [ebp + 0x5f8], 0x100
je 0x1012697e
mov eax, dword [esi + 0xb8]
and dword [ebp - 0x34], 0
cmp dword [eax + 0x1c], 0
jle 0x1012697e
mov eax, dword [esi + 0xb8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, eax
mov eax, dword [edi]
push 4
push edi
call dword [eax + 0xf0]
test eax, eax
je 0x1012696a
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
jge 0x1012696a
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x1012695f
xor ebx, ebx
cmp dword [eax + 0x1c], ebx
jle 0x1012695f
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
cmp dword [eax + 0xc], edi
je 0x1012696a
cmp dword [eax + 0x10], edi
je 0x1012696a
mov eax, dword [esi + 0xd4]
inc ebx
cmp ebx, dword [eax + 0x1c]
jl 0x1012693c
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0xc8]
inc dword [ebp - 0x34]
mov eax, dword [esi + 0xb8]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + 0x1c]
jl 0x101268fd
mov ebx, dword [ebp - 0x44]
test byte [ebp + 0x5f8], 0x80
je 0x101269e1
mov eax, dword [esi + 0xb8]
and dword [ebp - 0x34], 0
cmp dword [eax + 0x1c], 0
jle 0x101269e1
mov eax, dword [esi + 0xb8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, eax
mov eax, dword [edi]
push 3
push edi
call dword [eax + 0xf0]
test eax, eax
je 0x101269d0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
jge 0x101269d0
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0xc8]
inc dword [ebp - 0x34]
mov eax, dword [esi + 0xb8]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + 0x1c]
jl 0x10126997
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 4], 0x88
jne 0x101269fc
mov edx, dword [esi + 0xc0]
xor eax, eax
inc eax
cmp dword [edx + 0x1c], eax
jle 0x101269fc
xor edi, edi
jmp 0x10126a00
xor edi, edi
xor eax, eax
mov edx, dword [esi + 0xb8]
cmp dword [edx + 0x1c], edi
jne 0x10126a23
cmp dword [ebp - 0x50], edi
jne 0x10126a36
cmp eax, edi
jne 0x10126a28
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x64]
mov dword [eax], edi
xor esi, esi
jmp 0x10126a89
cmp dword [ebp - 0x50], edi
jne 0x10126a36
cmp dword [esi + 0x198], edi
jne 0x10126a36
mov dword [esi + 0x198], ecx
mov eax, dword [esi + 0x144]
push dword [eax + 8]
mov ecx, esi
call fcn.100dca9d
test byte [ebp + 0x5f8], 4
jne 0x10126a89
cmp dword [ebp - 0x60], edi
jne 0x10126a7f
mov edi, dword [ebx]
push 0x37
add edi, 0x18
call fcn.100fe3dc
push eax
push 0xffffffffffffffff
push ebx
call dword [edi]
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x50], eax
setne al
push eax
push esi
push 0x100e
call fcn.100f5d4a
xor edi, edi
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x184]
mov eax, dword [ebp - 0x48]
cmp eax, edi
je 0x10126a96
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx]
push 0x1015f2b8
push 0xffffffffffffffff
push ebx
call dword [eax + 0x18]
add esp, 0xc
cmp esi, edi
je 0x10126b39
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push 0x38
push eax
call fcn.100fe39e
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push edi
push ebx
call dword [eax + 0x18]
mov eax, dword [esi + 0x198]
add esp, 0x18
cmp eax, edi
je 0x10126afd
cmp dword [eax + 0x60], edi
je 0x10126afd
push edi
push esi
push edi
push 0xa
push eax
call sym.rt3d.dll_public:_unsigned_int___stdcall_FILETYPE::Func3d_unsigned_int__class_e3_STREAM___class_e3_SCENE___class_e3_interface__
test eax, eax
je 0x10126afd
mov eax, dword [esi + 0x198]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x50], edi
jne 0x10126b12
mov eax, dword [esi + 0x140]
push dword [eax + 0x1c]
mov ecx, esi
call fcn.100e23da
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
call fcn.100c5933
mov ecx, dword [ebp + 0x5e0]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013fce4
add ebp, 0x5e4
leave
ret 0x14
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10126b12
or esi, 0xffffffff
jmp 0x10126b15