Function at 0xf039abb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov bl, byte [edi + 1]
mov al, byte [edi]
and al, 0x1f
and bl, 3
mov byte [ebp + 0xb], al
mov al, byte [edi + 2]
movzx esi, bl
mov byte [ebp - 0x10], al
imul esi, esi, 0x12c
mov al, byte [edi + 3]
mov byte [ebp - 4], al
mov al, byte [edi + 4]
mov byte [ebp - 0xc], al
mov al, byte [edi + 5]
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x18], al
add esi, 0xf09b020
call fcn.0f00b260
cmp byte [ebp + 0xb], 0xd
je 0xf039b5c
cmp dword [0xf064180], 0
jne 0xf039b20
cmp bl, byte [0xf064184]
je 0xf039b41
push dword [ebp - 0x20]
call fcn.0f03999c
cmp ax, 0x64
je 0xf039b41
push esi
call fcn.0f00bb96
and dword [0xf064180], 0
mov byte [0xf064184], bl
mov ax, word [0xf09b278]
cmp ax, word [esi + 0x12]
je 0xf039b5c
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x40
mov byte [eax + 1], 1
jmp 0xf039f40
cmp byte [ebp + 0xb], 6
je 0xf039b68
cmp byte [ebp + 0xb], 5
jne 0xf039bc5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
call fcn.0f058ca1
push dword [ebp - 0x18]
movzx edx, word [ebp - 0x1c]
push dword [ebp - 0xc]
inc edx
push dword [ebp - 4]
mov dword [ebp - 8], edx
push dword [ebp - 0x10]
push esi
call fcn.0f039672
test eax, eax
je 0xf039eef
mov ax, word [0xf09b278]
cmp ax, word [esi + 0x12]
jne 0xf039eef
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push esi
call fcn.0f039641
mov dword [ebp - 0x24], eax
mov eax, edx
shr eax, 9
mov dword [ebp - 0x28], eax
jmp 0xf039bc8
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + 0xb]
sub eax, 5
je 0xf039e02
dec eax
je 0xf039d35
sub eax, 4
je 0xf039cc0
sub eax, 3
jne 0xf039f44
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
call fcn.0f058ca1
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [0xf09b38c]
push 2
call fcn.0f058d99
mov al, byte [edi + 1]
movsx edx, word [0xf09b278]
mov bl, al
shr al, 2
and al, 1
mov byte [ebp - 4], al
and bl, 3
movzx eax, bl
imul eax, eax, 0x12c
add eax, 0xf09b020
movzx ecx, word [eax + 6]
movzx eax, word [eax + 8]
add ecx, edx
push dword [ecx*4 + 0xf064168]
movzx cx, byte [ebp - 4]
mov byte [ebp + 8], bl
push ecx
push eax
push dword [ebp + 8]
call fcn.0f0398e7
test eax, eax
jne 0xf039cb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf002488
mov esi, 0xf09b280
push esi
mov dword [0xf070758], eax
call fcn.0f01336d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov cl, byte [ebp - 4]
mov eax, dword [ebp + 0xc]
and cl, 1
or cl, 0x10
shl cl, 2
and bl, 3
or cl, bl
mov byte [eax], cl
mov byte [eax + 1], 0
cmp dword [0xf070758], 0x13
jne 0xf039ca8
mov byte [eax + 1], 2
mov byte [eax + 2], 0
jmp 0xf039ee3
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov byte [eax + 1], 0
jmp 0xf039f40
mov al, byte [edi + 1]
movzx ecx, word [esi + 6]
movsx edx, word [0xf09b278]
mov edi, dword [ebp + 0xc]
shr al, 2
add ecx, edx
and al, 1
cmp ecx, 1
jne 0xf039cea
xor ecx, ecx
mov cx, word [esi + 8]
shr ecx, 1
mov byte [edi + 2], cl
jmp 0xf039cf0
mov cl, byte [esi + 8]
mov byte [edi + 3], cl
movzx cx, byte [esi + 0x21]
cmp cx, word [esi + 0x18]
jae 0xf039d28
mov dl, byte [edi]
mov cl, al
and cl, 1
shl cl, 2
and dl, 0xf8
or cl, dl
and bl, 3
or cl, bl
mov byte [edi], cl
mov byte [edi + 4], al
mov al, byte [esi + 0x23]
mov byte [edi + 5], al
mov al, byte [esi + 0x24]
mov byte [edi + 6], al
mov al, byte [esi + 0x21]
mov byte [edi + 3], al
jmp 0xf039d2d
mov al, byte [esi + 0x18]
dec al
mov byte [edi + 3], al
jmp 0xf039f44
push dword [0xf09b38c]
push edx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.0f03985b
cmp eax, dword [ebp - 8]
je 0xf039d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf002470
mov ebx, 0xf09b280
push ebx
mov dword [0xf070758], eax
call fcn.0f01336d
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
mov byte [ebx], 0x40
mov byte [ebx + 1], 4
mov byte [ebx + 2], 0
jmp 0xf039db6
push dword [ebp - 8]
push dword [0xf09b38c]
push 2
call fcn.0f058d99
mov cl, byte [ebp - 4]
mov eax, dword [ebp + 0xc]
and cl, 1
and bl, 3
shl cl, 2
or cl, bl
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov byte [eax], cl
mov ebx, eax
mov al, byte [ebp - 0x10]
push dword [ebp - 0x28]
mov byte [esi + 0x21], al
mov al, byte [ebp - 4]
mov byte [esi + 0x22], al
mov al, byte [ebp - 0xc]
mov byte [esi + 0x23], al
mov al, byte [ebp - 0x18]
mov byte [esi + 0x24], al
xor eax, eax
mov al, byte [edi + 6]
push eax
xor eax, eax
mov al, byte [edi]
shr al, 7
push eax
push esi
call fcn.0f0396ac
mov al, byte [esi + 0x21]
mov byte [ebx + 3], al
mov al, byte [esi + 0x22]
mov byte [ebx + 4], al
mov al, byte [esi + 0x23]
mov byte [ebx + 5], al
mov al, byte [esi + 0x24]
mov byte [ebx + 6], al
jmp 0xf039edd
push edx
push dword [0xf09b38c]
push 2
call fcn.0f058d99
push dword [0xf09b38c]
push dword [ebp - 8]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.0f0398a1
cmp eax, dword [ebp - 8]
je 0xf039e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf002454
push 0xf09b280
mov dword [0xf070758], eax
call fcn.0f01336d
add esp, 0xc
push 0xf09b280
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
je 0xf039e83
mov byte [eax], 0x40
cmp dword [0xf070758], 0x13
setne cl
lea ecx, [ecx + ecx + 2]
mov byte [eax + 1], cl
jmp 0xf039e93
mov cl, byte [ebp - 4]
and cl, 1
shl cl, 2
and bl, 3
or cl, bl
mov byte [eax], cl
mov al, byte [ebp - 0x10]
push dword [ebp - 0x28]
mov byte [esi + 0x21], al
mov al, byte [ebp - 4]
mov byte [esi + 0x22], al
mov al, byte [ebp - 0xc]
mov byte [esi + 0x23], al
mov al, byte [ebp - 0x18]
mov byte [esi + 0x24], al
xor eax, eax
mov al, byte [edi + 6]
push eax
xor eax, eax
mov al, byte [edi]
shr al, 7
push eax
push esi
call fcn.0f0396ac
mov cl, byte [esi + 0x21]
mov eax, dword [ebp + 0xc]
mov byte [eax + 3], cl
mov cl, byte [esi + 0x22]
mov byte [eax + 4], cl
mov cl, byte [esi + 0x23]
mov byte [eax + 5], cl
mov cl, byte [esi + 0x24]
mov byte [eax + 6], cl
cmp dword [ebp - 0x14], 0
je 0xf039f44
mov dword [0xf064180], 1
jmp 0xf039f44
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, byte [ebp - 4]
push eax
movzx eax, byte [ebp - 0x10]
push eax
push 0xf002420
mov edi, 0xf09b280
push edi
call fcn.0f01336d
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], 0
mov byte [eax], 0x40
mov cx, word [0xf09b278]
cmp cx, word [esi + 0x12]
sete cl
dec cl
and cl, 0xfd
add cl, 4
mov byte [eax + 1], cl
mov byte [eax + 2], 0
pop edi
pop esi
xor ax, ax
pop ebx
leave
ret 8