Function at 0xf039fe1
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, 0xf09b0e0
call fcn.0f00b37d
cmp byte [ebp + 0xb], 0xd
je 0xf03a082
cmp dword [0xf064198], 0
jne 0xf03a046
cmp bl, byte [0xf06419c]
je 0xf03a067
push dword [ebp - 0x20]
call fcn.0f039ec2
cmp ax, 0x64
je 0xf03a067
push esi
call fcn.0f00bcb3
and dword [0xf064198], 0
mov byte [0xf06419c], bl
mov ax, word [0xf09b338]
cmp ax, word [esi + 0x12]
je 0xf03a082
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x40
mov byte [eax + 1], 1
jmp 0xf03a466
cmp byte [ebp + 0xb], 6
je 0xf03a08e
cmp byte [ebp + 0xb], 5
jne 0xf03a0eb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
call fcn.0f059271
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.0f039b98
test eax, eax
je 0xf03a415
mov ax, word [0xf09b338]
cmp ax, word [esi + 0x12]
jne 0xf03a415
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push esi
call fcn.0f039b67
mov dword [ebp - 0x24], eax
mov eax, edx
shr eax, 9
mov dword [ebp - 0x28], eax
jmp 0xf03a0ee
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + 0xb]
sub eax, 5
je 0xf03a328
dec eax
je 0xf03a25b
sub eax, 4
je 0xf03a1e6
sub eax, 3
jne 0xf03a46a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
call fcn.0f059271
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [0xf09b44c]
push 2
call fcn.0f059369
mov al, byte [edi + 1]
movsx edx, word [0xf09b338]
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, 0xf09b0e0
movzx ecx, word [eax + 6]
movzx eax, word [eax + 8]
add ecx, edx
push dword [ecx*4 + 0xf064180]
movzx cx, byte [ebp - 4]
mov byte [ebp + 8], bl
push ecx
push eax
push dword [ebp + 8]
call fcn.0f039e0d
test eax, eax
jne 0xf03a1d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf0024e0
mov esi, 0xf09b340
push esi
mov dword [0xf070808], eax
call fcn.0f01347c
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 [0xf070808], 0x13
jne 0xf03a1ce
mov byte [eax + 1], 2
mov byte [eax + 2], 0
jmp 0xf03a409
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov byte [eax + 1], 0
jmp 0xf03a466
mov al, byte [edi + 1]
movzx ecx, word [esi + 6]
movsx edx, word [0xf09b338]
mov edi, dword [ebp + 0xc]
shr al, 2
add ecx, edx
and al, 1
cmp ecx, 1
jne 0xf03a210
xor ecx, ecx
mov cx, word [esi + 8]
shr ecx, 1
mov byte [edi + 2], cl
jmp 0xf03a216
mov cl, byte [esi + 8]
mov byte [edi + 3], cl
movzx cx, byte [esi + 0x21]
cmp cx, word [esi + 0x18]
jae 0xf03a24e
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 0xf03a253
mov al, byte [esi + 0x18]
dec al
mov byte [edi + 3], al
jmp 0xf03a46a
push dword [0xf09b44c]
push edx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.0f039d81
cmp eax, dword [ebp - 8]
je 0xf03a2af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf0024c8
mov ebx, 0xf09b340
push ebx
mov dword [0xf070808], eax
call fcn.0f01347c
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 0xf03a2dc
push dword [ebp - 8]
push dword [0xf09b44c]
push 2
call fcn.0f059369
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.0f039bd2
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 0xf03a403
push edx
push dword [0xf09b44c]
push 2
call fcn.0f059369
push dword [0xf09b44c]
push dword [ebp - 8]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.0f039dc7
cmp eax, dword [ebp - 8]
je 0xf03a37f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf0024ac
push 0xf09b340
mov dword [0xf070808], eax
call fcn.0f01347c
add esp, 0xc
push 0xf09b340
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 0xf03a3a9
mov byte [eax], 0x40
cmp dword [0xf070808], 0x13
setne cl
lea ecx, [ecx + ecx + 2]
mov byte [eax + 1], cl
jmp 0xf03a3b9
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.0f039bd2
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 0xf03a46a
mov dword [0xf064198], 1
jmp 0xf03a46a
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 0xf002478
mov edi, 0xf09b340
push edi
call fcn.0f01347c
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 [0xf09b338]
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