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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x575eac
lea ebx, [ecx + 8]
mov dword [ebp - 0x424], ecx
add ecx, 0xc
lea esi, [ebp - 0x410]
mov dword [ebp - 0x434], ecx
push esi
call fcn.0049a2c0
movzx eax, byte [esi + 0xb]
mov ecx, eax
and ecx, 0x7f
mov dword [ebp - 0x428], ecx
test al, al
jns 0x44c209
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x428], eax
jns 0x44c219
push dword [ebp - 0x410]
call fcn.004c5c98
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x410]
push esi
call fcn.0049f000
mov ecx, esi
push 0x597884
call fcn.0049f3f0
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 0xa
call esi
mov byte [ebp - 0x42c], al
lea ecx, [ebp - 0x410]
call fcn.0049f140
movsx eax, byte [ebp - 0x42c]
mov ecx, ebx
push eax
call fcn.0042b810
mov ecx, ebx
call fcn.0042a730
xor eax, eax
dec eax
lea edx, [ebp - 0x41c]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x430], edx
push edx
call fcn.0049a2c0
test byte [0x59301c], 0x19
jne 0x44c40a
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 3
je 0x44c43f
mov ecx, dword [0x597fc8]
test ecx, ecx
je 0x44c2fe
mov eax, dword [ebp - 0x424]
mov edx, dword [eax + 4]
mov dword [ebp - 0x42c], edx
mov ebx, dword [eax + 0x90]
mov esi, dword [eax + 0x98]
mov edi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [ebp - 0x41c]
push eax
push ebx
push esi
push edi
push dword [ebp - 0x42c]
call ecx
add esp, 0x14
test al, al
jne 0x44c340
mov eax, dword [0x592c00]
test al, 2
jne 0x44c4a6
test al, 4
jne 0x44c3c1
mov ecx, dword [ebp - 0x424]
cmp dword [ecx + 4], 2
jl 0x44c328
cmp eax, 1
jbe 0x44c3c1
test al, 1
jne 0x44c4d1
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 3
je 0x44c51c
cmp byte [ebp - 0x411], 0
jns 0x44c357
push dword [ebp - 0x41c]
call fcn.004c5c98
add esp, 4
mov esi, dword [ebp - 0x424]
lea ecx, [esi + 0x9c]
call fcn.004afd30
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x576cd0
mov dword [esi + 0xc], 0x576ce0
cmp byte [esi + 0x37], 0
jns 0x44c38e
push dword [esi + 0x2c]
call fcn.004c5c98
add esp, 4
add esi, 0x40
mov edi, dword [ebp - 0x434]
mov ecx, edi
call fcn.0049a260
mov ecx, edi
call fcn.0049a2b0
mov ecx, esi
call fcn.0049a250
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x41c]
movzx ecx, byte [esi + 0xb]
mov edi, ecx
and edi, 0x7f
test cl, cl
cmovs edi, dword [esi + 4]
cmovs esi, dword [esi]
test edi, edi
je 0x44c328
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.004de00a
add esp, 0xc
test eax, eax
js 0x44c400
add ebx, eax
cmp edi, ebx
ja 0x44c3e3
mov eax, dword [0x592c00]
jmp 0x44c328
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x40c], eax
mov ecx, str.LogMessage
xor edx, edx
lea eax, [ebp - 0x410]
push eax
push 0
call fcn.0050b8f0
add esp, 8
jmp 0x44c2a4
cmp byte [0x597ff0], 0
jne 0x44c2b4
mov byte [0x597ff0], 1
mov eax, dword [0x597ff8]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x44c696
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x410]
push eax
call fcn.0050b590
movzx eax, byte [ebp - 0x405]
test al, al
jns 0x44c607
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x40c]
jmp 0x44c610
cmp byte [ebp - 0x411], 0
jns 0x44c4bb
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x430], eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x592c00]
jmp 0x44c30b
call fcn.0050b260
test al, al
je 0x44c330
lea eax, [ebp - 0x41c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov dword [ebp - 0x410], 0xffffffff
cmovs eax, dword [eax]
push 0
lea ecx, [ebp - 0x410]
push ecx
push edx
push eax
push dword [0x597fd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44c330
mov ecx, dword [0x597f90]
test ecx, ecx
je 0x44c54f
movzx eax, byte [ebp - 0x411]
test al, al
jns 0x44c53f
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
jmp 0x44c548
and eax, 0x7f
lea edx, [ebp - 0x41c]
push eax
push edx
call fcn.0050a280
mov esi, 0x400
push esi
push 0xff
lea eax, [ebp - 0x410]
push eax
call fcn.004c9370
add esp, 0xc
cmp byte [ebp - 0x411], 0
jns 0x44c57a
mov eax, dword [ebp - 0x41c]
jmp 0x44c580
lea eax, [ebp - 0x41c]
push esi
push eax
lea esi, [ebp - 0x410]
push esi
call fcn.004a82e0
add esp, 0xc
push esi
call fcn.0049a2b0
add esp, 4
call fcn.0050b480
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x44c6d9
mov dword [ebp - 0x420], 0xffffffff
call fcn.0050b480
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x44c6dc
shl edx, 2
add edx, dword [eax]
lea esi, [ebp - 0x420]
mov ecx, esi
push edx
call fcn.004a25c0
cmp dword [esi], 0
jne 0x44c5f6
lea ecx, [ebp - 0x420]
call fcn.004a2590
jmp 0x44c340
cmp byte [ebp - 0x411], 0
jns 0x44c643
mov esi, dword [ebp - 0x41c]
jmp 0x44c649
and eax, 0x7f
lea ecx, [ebp - 0x410]
push eax
push ecx
push dword [0x597ff4]
call fcn.004afd50
add esp, 0xc
cmp byte [ebp - 0x405], 0
jns 0x44c637
push dword [ebp - 0x410]
call fcn.004c5c98
add esp, 4
mov byte [0x597ff0], 0
jmp 0x44c2b4
lea esi, [ebp - 0x41c]
mov edi, esi
add edi, dword [ebp - 0x428]
je 0x44c6df
push edi
call fcn.004e24d0
add esp, 4
mov edx, dword [ebp - 0x424]
mov ecx, dword [edx + 0x90]
mov ebx, dword [ebp - 0x428]
sub ebx, ecx
add esi, ecx
lea ecx, [ebp - 0x420]
push eax
push edi
push ebx
push esi
push dword [edx + 0x98]
push dword [edx + 0x94]
call fcn.0050b4e0
jmp 0x44c5e6
push 0x597ff8
call fcn.004c5d07
add esp, 4
cmp dword [0x597ff8], 0xffffffff
jne 0x44c474
push 0x400
push str.LOG_FATAL
call fcn.004638b0
add esp, 8
mov dword [0x597ff4], eax
push 0x597ff8
call fcn.004c5d7d
add esp, 4
jmp 0x44c474
int3
int3
int3