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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x448
mov eax, dword [0x674014]
xor eax, ebp
mov dword [esp + 0x440], eax
mov dword [ecx], 0x6187dc
lea esi, [ecx + 8]
mov eax, dword [ecx + 8]
mov edi, dword [eax + 4]
mov edx, 0xffffffff
mov dword [esp + 0x10], ecx
test byte [ecx + edi + 0x18], 5
mov dword [esp + 0x18], esi
jne 0x4b6dc5
mov ebx, dword [esi + edi + 0x18]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
sub esp, 0x14
movaps xmm0, xmmword [0x624a20]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0x54]
mov dword [esp], eax
mov ecx, ebx
call edi
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov eax, dword [esi]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 4]
add ecx, esi
lea edi, [esp + 0x40]
push edi
call fcn.0049210a
mov ecx, edi
push 0x684bc0
call fcn.004a5108
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
lea ecx, [esp + 0x40]
call fcn.004940f0
movsx eax, bl
mov ecx, esi
push eax
call fcn.00411cc0
mov ecx, esi
call fcn.00410ce0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0xc]
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], eax
push eax
call fcn.00412320
test byte [0x6770c8], 0x19
jne 0x4b7166
mov ecx, dword [0x6852f4]
test ecx, ecx
je 0x4b6e9d
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
mov ebx, dword [esi + 0x90]
mov eax, dword [esi + 0x98]
mov dword [esp + 8], eax
mov edi, dword [esi + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
call ecx
add esp, 0x14
test al, al
jne 0x4b70ec
mov eax, dword [0x676cc0]
test al, 2
je 0x4b6ec4
cmp byte [esp + 0x2f], 0
jns 0x4b6eb5
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x676cc0]
test al, 4
jne 0x4b6ed3
cmp dword [esi + 4], 2
jl 0x4b6f16
cmp eax, 1
ja 0x4b6f16
movzx ebx, byte [esp + 0x2f]
test bl, bl
cmovs ebx, dword [esp + 0x28]
lea edi, [esp + 0x24]
cmovs edi, dword [esp + 0x24]
test ebx, ebx
je 0x4b6f16
xor esi, esi
nop
mov eax, ebx
sub eax, esi
lea ecx, [edi + esi]
push eax
push ecx
push 2
call fcn.005f4909
add esp, 0xc
test eax, eax
js 0x4b6f0d
add esi, eax
cmp esi, ebx
jb 0x4b6ef0
mov eax, dword [0x676cc0]
mov esi, dword [esp + 0x10]
test al, 1
je 0x4b6f55
call fcn.004b6600
test al, al
je 0x4b6f55
mov dword [esp + 0x40], 0xffffffff
movzx eax, byte [esp + 0x2f]
test al, al
cmovs eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmovs ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x685300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 3
jne 0x4b70ec
mov ecx, dword [0x6852c8]
test ecx, ecx
je 0x4b6f87
movzx eax, byte [esp + 0x2f]
test al, al
jns 0x4b6f7c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
jmp 0x4b6f80
lea edx, [esp + 0x24]
push eax
push edx
call fcn.004b2910
push 0x400
push 0xff
lea eax, [esp + 0x48]
push eax
call fcn.005dfe70
add esp, 0xc
cmp byte [esp + 0x2f], 0
jns 0x4b6fab
mov eax, dword [esp + 0x24]
jmp 0x4b6faf
lea eax, [esp + 0x24]
push 0x400
push eax
lea edi, [esp + 0x48]
push edi
call fcn.004c08d0
add esp, 0xc
push edi
call fcn.00410cd0
add esp, 4
mov eax, dword [0x685318]
mov ecx, dword [0x678164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b718d
mov eax, dword [0x685310]
cmp eax, dword [0x685314]
je 0x4b71f9
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [0x685318]
mov ecx, dword [0x678164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b71c3
mov eax, dword [0x685314]
test eax, eax
mov ecx, dword [0x68530c]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x4b71fc
shl eax, 2
add eax, dword [0x685308]
lea ecx, [esp + 0x20]
push eax
call fcn.004addd0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4b70e3
cmp byte [esp + 0x2f], 0
jns 0x4b706b
mov esi, dword [esp + 0x24]
jmp 0x4b706f
lea esi, [esp + 0x24]
mov edi, dword [esp + 0x14]
mov dword [esp + 4], eax
mov ebx, esi
add ebx, edi
je 0x4b71ff
push ebx
call fcn.005f8970
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x90]
sub edi, ecx
add esi, ecx
mov ecx, dword [edx + 0x94]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 0x98]
mov dword [esp + 8], ecx
mov dword [esp + 0x38], esi
mov esi, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov edi, dword [esp + 4]
mov ecx, dword [edi + 4]
call dword [section..00cfg]
lea eax, [esp + 0x30]
lea edx, [esp + 0x38]
push eax
push edx
push dword [esp + 0x10]
push dword [esp + 0x18]
push edi
call ecx
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004adda0
cmp byte [esp + 0x2f], 0
jns 0x4b70ff
push dword [esp + 0x24]
call fcn.005dc756
add esp, 4
lea ecx, [esi + 0x9c]
call fcn.004500a0
lea ebx, [esi + 0x40]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x61a140
mov dword [esi + 0xc], 0x61a150
cmp byte [esi + 0x37], 0
jns 0x4b7137
mov eax, dword [esp + 0x18]
push dword [eax + 0x24]
call fcn.005dc756
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00410a6e
mov ecx, esi
call fcn.00410cd0
mov ecx, ebx
call fcn.00410a64
mov ecx, dword [esp + 0x440]
xor ecx, ebp
call fcn.005dd6f3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x40], esi
lea eax, [esp + 0x24]
mov dword [esp + 0x44], eax
mov ecx, str.LogMessage
xor edx, edx
lea eax, [esp + 0x40]
push eax
push 0
call fcn.004b75c0
add esp, 8
jmp 0x4b6e54
push 0x685318
call fcn.005dc7c7
add esp, 4
cmp dword [0x685318], 0xffffffff
jne 0x4b6fec
xorps xmm0, xmm0
movups xmmword [0x685308], xmm0
push 0x685318
call fcn.005dc83d
add esp, 4
jmp 0x4b6fec
push 0x685318
call fcn.005dc7c7
add esp, 4
cmp dword [0x685318], 0xffffffff
jne 0x4b7026
xorps xmm0, xmm0
movups xmmword [0x685308], xmm0
push 0x685318
call fcn.005dc83d
add esp, 4
jmp 0x4b7026
int3
int3
int3