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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
mov ebx, ecx
lea eax, [esp + 0x38]
push esi
push edi
push eax
lea esi, [ebx + 8]
mov ecx, esi
call fcn.0044ca20
push esi
mov edi, dword [eax + 8]
add edi, dword [eax]
mov dword [esp + 0x14], edi
call fcn.0043c1b0
add esp, 4
lea eax, [esp + 0x58]
lea ecx, [ebx + 0xc]
push eax
call fcn.0044cc90
mov eax, dword [0x51ed00]
test eax, eax
je 0x44be0c
lea ecx, [esp + 0x58]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x44c04d
test byte [0x51aa44], 2
je 0x44be2c
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x44be31
cmp dword [ebx], 2
jl 0x44be6e
cmp dword [esp + 0x6c], 0x10
lea edi, [esp + 0x58]
mov esi, dword [esp + 0x68]
cmovae edi, dword [esp + 0x58]
push 2
call fcn.004d4ba8
add esp, 4
push eax
push 1
push esi
push edi
call fcn.004d77ca
push 2
call fcn.004d4ba8
add esp, 0x14
push eax
call fcn.004d7318
mov edi, dword [esp + 0x14]
add esp, 4
test byte [0x51aa44], 1
je 0x44bea6
call fcn.0044b860
test al, al
je 0x44bea6
cmp dword [esp + 0x6c], 0x10
lea ecx, [esp + 0x3c]
push 0
push ecx
push dword [esp + 0x70]
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push eax
push dword [0x51ed08]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x44c04d
mov ecx, dword [0x51ed64]
test ecx, ecx
je 0x44beda
sub esp, 8
lea eax, [esp + 0x60]
cmp dword [esp + 0x74], 0x10
mov edx, esp
cmovae eax, dword [esp + 0x60]
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], eax
call fcn.0045c060
mov ecx, 0x400
lea eax, [esp + 0x58]
cmp dword [esp + 0x68], ecx
cmovb ecx, dword [esp + 0x68]
cmp dword [esp + 0x6c], 0x10
cmovae eax, dword [esp + 0x58]
test ecx, ecx
je 0x44bf09
push ecx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004cd490
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call fcn.00462a10
mov eax, dword [0x51ed0c]
add esp, 4
sub eax, 0
je 0x44c043
sub eax, 1
je 0x44bf3b
cmp dword [0x51ed0c], 0
sete al
test al, al
jne 0x44c043
push 0x51ed0c
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x51ed0c
mov ecx, 0x51ed0c
call fcn.0044d0e0
add esp, 8
cmp dword [eax + 0x10], 0
je 0x44c043
push 0x51ed0c
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x51ed0c
mov ecx, 0x51ed0c
call fcn.0044d0e0
add esp, 8
mov ecx, eax
call fcn.0044c9d0
push eax
lea ecx, [esp + 0x20]
call fcn.0044c0d0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x44c04d
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
add edi, eax
jne 0x44bfb6
xor edx, edx
jmp 0x44bfcd
cmp byte [edi], 0
jne 0x44bfbf
xor edx, edx
jmp 0x44bfcd
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x44bfc4
sub edx, ecx
cmp dword [esp + 0x6c], 0x10
lea ecx, [esp + 0x58]
mov eax, dword [ebx + 0xa0]
cmovae ecx, dword [esp + 0x58]
sub dword [esp + 0x10], eax
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xa8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], edi
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], edx
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], ecx
push eax
mov eax, dword [esi + 4]
push esi
call eax
add esp, 0x14
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
jne 0x44c04d
mov eax, dword [esi + 8]
push esi
call eax
add esp, 4
jmp 0x44c04d
cmp byte [0x51edbc], 0
jne 0x44c0ae
int3
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
jb 0x44c085
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, 0x1000
jb 0x44c07c
test cl, 0x1f
jne 0x44c0b5
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44c0ba
sub ecx, eax
cmp ecx, 4
jb 0x44c0bf
cmp ecx, 0x23
ja 0x44c0c4
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebx + 8]
call fcn.0044bd30
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
push 1
call fcn.004d8682
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3