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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
mov esi, ecx
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x4be248
lea ebx, [ecx + 8]
add ecx, 0xc
lea edi, [ebp - 0x410]
mov dword [ebp - 0x448], ecx
push edi
call fcn.004119a0
movzx eax, byte [ebp - 0x405]
mov dword [ebp - 0x43c], eax
test al, al
jns 0x452ab1
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x43c], eax
push dword [ebp - 0x410]
call fcn.0048ae3c
add esp, 4
mov dword [ebp - 0x440], esi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
push edi
call fcn.004194ea
mov ecx, edi
push 0x4d6508
call fcn.0042c398
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 esi, ebx
mov ebx, eax
lea ecx, [ebp - 0x410]
call fcn.0041b402
movsx eax, bl
mov ecx, esi
push eax
call fcn.00411260
mov ecx, esi
call fcn.004108e0
mov dword [ebp - 0x438], 0xffffffff
mov dword [ebp - 0x434], 0xffffffff
mov dword [ebp - 0x430], 0xffffffff
lea eax, [ebp - 0x438]
mov edi, dword [ebp - 0x448]
mov ecx, edi
mov dword [ebp - 0x444], eax
push eax
call fcn.004119a0
movzx ecx, byte [ebp - 0x42d]
mov eax, ecx
test cl, cl
jns 0x452b52
mov eax, dword [ebp - 0x434]
mov esi, dword [ebp - 0x440]
mov edx, dword [esi + 0x90]
cmp eax, edx
jb 0x453173
test cl, cl
mov ecx, dword [ebp - 0x438]
lea ebx, [ebp - 0x438]
cmovns ecx, ebx
add ecx, edx
mov dword [ebp - 0x418], ecx
sub eax, edx
mov dword [ebp - 0x414], eax
js 0x453176
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x424]
push eax
call fcn.0044b5c0
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], eax
test byte [0x4d4560], 0x19
jne 0x452bd4
cmp byte [ebp - 0x419], 0
js 0x452c19
cmp dword [esi + 4], 3
je 0x452c31
jmp 0x452d2b
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x408], eax
mov ecx, str.LogMessage
xor edx, edx
lea eax, [ebp - 0x410]
push eax
push 0
call fcn.004535e0
add esp, 8
cmp byte [ebp - 0x419], 0
jns 0x452bc9
push dword [ebp - 0x424]
call fcn.0048ae3c
add esp, 4
cmp dword [esi + 4], 3
jne 0x452d2b
cmp byte [0x4e2004], 0
jne 0x452d2b
mov byte [0x4e2004], 1
mov eax, dword [0x4e200c]
mov ecx, dword [0x4d5294]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4530c4
mov ecx, edi
lea ebx, [ebp - 0x410]
push ebx
call fcn.004119a0
cmp byte [ebp - 0x405], 0
jns 0x452c83
mov ebx, dword [ebp - 0x410]
add ebx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
mov esi, dword [esi + 0x98]
test edi, edi
je 0x452cae
push 0x5c
push edi
call fcn.0048ed10
add esp, 8
lea ecx, [eax + 1]
test eax, eax
cmove ecx, edi
jmp 0x452cb0
xor ecx, ecx
push ebx
push esi
push ecx
push str._s:_d:__s
lea esi, [ebp - 0x424]
push esi
call fcn.00457ca0
add esp, 0x14
cmp byte [ebp - 0x405], 0
jns 0x452cde
push dword [ebp - 0x410]
call fcn.0048ae3c
add esp, 4
movzx eax, byte [ebp - 0x419]
mov ecx, esi
test al, al
mov esi, dword [ebp - 0x440]
jns 0x452cfd
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x420]
push eax
push ecx
push dword [0x4e2008]
call fcn.00465c00
add esp, 0xc
cmp byte [ebp - 0x419], 0
jns 0x452d24
push dword [ebp - 0x424]
call fcn.0048ae3c
add esp, 4
mov byte [0x4e2004], 0
mov ecx, dword [0x4e1fe4]
test ecx, ecx
je 0x452d85
mov eax, dword [esi + 4]
mov dword [ebp - 0x44c], eax
mov edi, dword [esi + 0x90]
mov ebx, dword [esi + 0x98]
mov eax, dword [ebp - 0x440]
mov esi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [ebp - 0x438]
push eax
push edi
mov edi, dword [ebp - 0x448]
push ebx
push esi
mov esi, dword [ebp - 0x440]
push dword [ebp - 0x44c]
call ecx
add esp, 0x14
test al, al
jne 0x45304f
mov eax, dword [0x4d51dc]
test al, 2
je 0x452db4
cmp byte [ebp - 0x42d], 0
jns 0x452da3
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x444], eax
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4d51dc]
test al, 4
jne 0x452dc3
cmp dword [esi + 4], 2
jl 0x452e18
cmp eax, 1
ja 0x452e18
movzx ebx, byte [ebp - 0x42d]
test bl, bl
cmovs ebx, dword [ebp - 0x434]
lea edi, [ebp - 0x438]
cmovs edi, dword [ebp - 0x438]
test ebx, ebx
je 0x452e18
xor esi, esi
nop word cs:[eax + eax]
mov eax, ebx
sub eax, esi
lea ecx, [edi + esi]
push eax
push ecx
push 2
call fcn.004a04cc
add esp, 0xc
test eax, eax
js 0x452e0d
add esi, eax
cmp esi, ebx
jb 0x452df0
mov eax, dword [0x4d51dc]
mov esi, dword [ebp - 0x440]
test al, 1
je 0x452e63
call fcn.00452380
test al, al
je 0x452e63
mov dword [ebp - 0x410], 0xffffffff
movzx eax, byte [ebp - 0x42d]
test al, al
cmovs eax, dword [ebp - 0x434]
lea ecx, [ebp - 0x438]
cmovs ecx, dword [ebp - 0x438]
push 0
lea edx, [ebp - 0x410]
push edx
push eax
push ecx
push dword [0x4e1fe8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 3
mov edi, dword [ebp - 0x448]
jne 0x45304f
push 0x400
push 0xff
lea eax, [ebp - 0x410]
push eax
call fcn.0048ea80
add esp, 0xc
cmp byte [ebp - 0x42d], 0
jns 0x452e9d
mov eax, dword [ebp - 0x438]
jmp 0x452ea3
lea eax, [ebp - 0x438]
push 0x400
push eax
lea ebx, [ebp - 0x410]
push ebx
call fcn.004512a0
add esp, 0xc
push ebx
call fcn.004108d0
add esp, 4
mov eax, dword [0x4e2000]
mov ecx, dword [0x4d5294]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x453107
mov eax, dword [0x4e1ff8]
cmp eax, dword [0x4e1ffc]
je 0x453179
mov dword [ebp - 0x428], 0xffffffff
mov eax, dword [0x4e2000]
mov ecx, dword [0x4d5294]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45313d
mov eax, dword [0x4e1ffc]
test eax, eax
mov ecx, dword [0x4e1ff4]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x45317c
shl eax, 2
add eax, dword [0x4e1ff0]
lea ecx, [ebp - 0x428]
push eax
call fcn.00455330
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x453044
mov dword [ebp - 0x444], eax
cmp byte [ebp - 0x42d], 0
jns 0x452f71
mov ebx, dword [ebp - 0x438]
jmp 0x452f77
lea ebx, [ebp - 0x438]
mov ecx, dword [ebp - 0x43c]
mov esi, ebx
add esi, ecx
je 0x45317f
mov edi, dword [ebp - 0x440]
mov eax, dword [edi + 0x90]
sub ecx, eax
mov dword [ebp - 0x43c], ecx
js 0x453182
add ebx, eax
push esi
call fcn.004a3340
add esp, 4
mov ecx, dword [edi + 0x94]
mov edx, dword [edi + 0x98]
mov dword [ebp - 0x424], ebx
mov edi, dword [ebp - 0x43c]
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], eax
mov eax, 1
mov ebx, dword [ebp - 0x444]
lock xadd dword [ebx], eax
test eax, eax
jle 0x453185
mov dword [ebp - 0x43c], ecx
cmp eax, 0x7fffffff
mov edi, dword [ebp - 0x448]
je 0x453188
mov esi, edx
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push dword [ebp - 0x43c]
push ebx
call ecx
add esp, 0x14
lock dec dword [ebx]
mov esi, dword [ebp - 0x440]
jne 0x453044
push ebx
call fcn.00455250
add esp, 4
lea ecx, [ebp - 0x428]
call fcn.00455360
cmp byte [ebp - 0x42d], 0
jns 0x453066
push dword [ebp - 0x438]
call fcn.0048ae3c
add esp, 4
lea ecx, [esi + 0x9c]
call fcn.00477290
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x4be254
mov dword [esi + 0xc], 0x4be770
cmp byte [esi + 0x37], 0
jns 0x453097
push dword [esi + 0x2c]
call fcn.0048ae3c
add esp, 4
add esi, 0x40
mov ecx, edi
call fcn.0041059e
mov ecx, edi
call fcn.004108d0
mov ecx, esi
call fcn.00410594
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e200c
call fcn.0048ae81
add esp, 4
cmp dword [0x4e200c], 0xffffffff
jne 0x452c66
push 0x400
push str.LOG_FATAL
call fcn.00465be0
add esp, 8
mov dword [0x4e2008], eax
push 0x4e200c
call fcn.0048aefb
add esp, 4
jmp 0x452c66
push 0x4e2000
call fcn.0048ae81
add esp, 4
cmp dword [0x4e2000], 0xffffffff
jne 0x452ee2
xorps xmm0, xmm0
movups xmmword [0x4e1ff0], xmm0
push 0x4e2000
call fcn.0048aefb
add esp, 4
jmp 0x452ee2
push 0x4e2000
call fcn.0048ae81
add esp, 4
cmp dword [0x4e2000], 0xffffffff
jne 0x452f1e
xorps xmm0, xmm0
movups xmmword [0x4e1ff0], xmm0
push 0x4e2000
call fcn.0048aefb
add esp, 4
jmp 0x452f1e
int3
int3
int3
int3
int3
int3
int3
int3