Function at 0x1000d760
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x10030050]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov esi, 0x1002cb68
mov ebx, ecx
mov dword [esp + 0x18], eax
call fcn.1000da80
push edi
mov esi, ebx
call fcn.1000da80
mov eax, ebp
add esp, 8
sub eax, 1
je 0x1000d7d9
sub eax, 2
je 0x1000d7cb
sub eax, 1
je 0x1000d7bd
push ebp
push str._hex__x_:
lea ecx, [esp + 0x2c]
push 0x40
push ecx
call fcn.100136db
add esp, 0x10
jmp 0x1000d7ed
push 0x40
push str._dword:
lea edx, [esp + 0x2c]
push edx
jmp 0x1000d7e5
push 0x40
push str._hex:
lea eax, [esp + 0x2c]
push eax
jmp 0x1000d7e5
push 0x40
push 0x1002cb78
lea ecx, [esp + 0x2c]
push ecx
call fcn.10013be0
add esp, 0xc
push edi
lea esi, [esp + 0x28]
call fcn.1000da80
add esp, 4
cmp ebp, 1
je 0x1000d8b9
cmp ebp, 2
je 0x1000d8b9
cmp ebp, 4
jne 0x1000d851
mov ebx, dword [esp + 0x74]
add ebx, 0xffffffff
js 0x1000d9ee
mov edi, edi
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + ebx]
push eax
push str._02x
lea ecx, [esp + 0x2c]
push 0x40
push ecx
call fcn.100136db
push edi
lea esi, [esp + 0x38]
call fcn.1000da80
add esp, 0x14
sub ebx, 1
jns 0x1000d820
jmp 0x1000d9ee
mov ebp, dword [esp + 0x74]
xor ebx, ebx
test ebp, ebp
jbe 0x1000d9ee
nop
test ebx, ebx
mov eax, 0x1002cba0
ja 0x1000d86e
mov eax, 0x1002cb0f
mov edx, dword [esp + 0x14]
movzx ecx, byte [edx + ebx]
push ecx
push eax
push str._s_02x
lea edx, [esp + 0x30]
push 0x40
push edx
call fcn.100136db
push edi
lea esi, [esp + 0x3c]
call fcn.1000da80
add esp, 0x18
test ebx, ebx
jbe 0x1000d8ad
test bl, 0xf
jne 0x1000d8ad
push edi
mov esi, 0x1002cbac
call fcn.1000da80
add esp, 4
add ebx, 1
cmp ebx, ebp
jb 0x1000d860
jmp 0x1000d9ee
mov eax, dword [esp + 0x74]
add eax, 0xffffffff
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], eax
jle 0x1000d9ce
mov edi, edi
mov eax, dword [esp + 0x14]
lea esi, [eax + ebx]
mov al, byte [esi]
cmp al, 0x5c
je 0x1000d8e1
cmp al, 0x22
jne 0x1000d922
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
push 0x1002bbb4
push edi
call ebp
test eax, eax
je 0x1000d903
cmp dword [esp + 0x1c], 1
je 0x1000d928
push str.WriteFile_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1002dcf0
lea ecx, [esp + 0x13]
push ecx
mov byte [esp + 0x17], 0
call fcn.10014759
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
movzx edx, byte [esi]
push edx
call fcn.10013dd0
add esp, 4
test eax, eax
je 0x1000d964
push 0
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push edi
call ebp
test eax, eax
je 0x1000d950
cmp dword [esp + 0x18], 1
je 0x1000d9c1
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10012810
add esp, 0x5c
ret
movzx ecx, byte [esi]
push ecx
push 0x1002cb90
lea edx, [esp + 0x2c]
push 0x40
push edx
call fcn.100136db
lea eax, [esp + 0x34]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000d983
push 0
lea ecx, [esp + 0x24]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
push edi
call ebp
test eax, eax
je 0x1000da22
lea eax, [esp + 0x24]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000d9b0
sub eax, edx
cmp dword [esp + 0x20], eax
jne 0x1000da22
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x1000d8d0
push 0
lea edx, [esp + 0x14]
push edx
push 1
push 0x1002cb68
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000da60
cmp dword [esp + 0x10], 1
jne 0x1000da60
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x1002cbac
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000da41
cmp dword [esp + 0x10], 2
jne 0x1000da41
mov ecx, dword [esp + 0x64]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.10012810
add esp, 0x5c
ret
push str.WriteFile_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1002dcf0
lea eax, [esp + 0x13]
push eax
mov byte [esp + 0x17], 0
call fcn.10014759
push str.WriteFile_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1002dcf0
lea ecx, [esp + 0x13]
push ecx
mov byte [esp + 0x17], 0
call fcn.10014759
push str.WriteFile_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1002dcf0
lea edx, [esp + 0x13]
push edx
mov byte [esp + 0x17], 0
call fcn.10014759
int3