Function at 0x43fe10
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, 0x430
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [esp + 0x428], eax
mov dword [ecx], 0x56fe4c
lea ebx, [ecx + 8]
mov dword [esp], ecx
add ecx, 0xc
lea esi, [esp + 0x28]
mov dword [esp + 0x10], ecx
push esi
call fcn.0048bde0
movzx eax, byte [esi + 0xb]
mov ecx, eax
and ecx, 0x7f
mov dword [esp + 4], ecx
test al, al
jns 0x43fe63
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
jns 0x43fe71
push dword [esp + 0x28]
call fcn.004ba1ee
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [esp + 0x28]
push esi
call fcn.00491090
mov ecx, esi
push 0x58f694
call fcn.00491e90
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 [esp + 8], al
lea ecx, [esp + 0x28]
call fcn.004911d0
movsx eax, byte [esp + 8]
mov ecx, ebx
push eax
call fcn.0042b5e0
mov ecx, ebx
call fcn.0042a730
xor eax, eax
dec eax
lea edx, [esp + 0x1c]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
push edx
call fcn.0048bde0
test byte [0x58bf4c], 0x19
jne 0x440038
mov eax, dword [esp]
cmp dword [eax + 4], 3
je 0x440072
mov ecx, dword [0x58fdd8]
test ecx, ecx
je 0x43ff3c
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ebx, dword [eax + 0x90]
mov esi, dword [eax + 0x98]
mov edi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push edi
push dword [esp + 0x18]
call ecx
add esp, 0x14
test al, al
jne 0x43ff78
mov eax, dword [0x58bb30]
test al, 2
jne 0x4400ce
test al, 4
jne 0x43fff1
mov ecx, dword [esp]
cmp dword [ecx + 4], 2
jl 0x43ff63
cmp eax, 1
jbe 0x43fff1
test al, 1
jne 0x4400f1
mov eax, dword [esp]
cmp dword [eax + 4], 3
je 0x440136
cmp byte [esp + 0x27], 0
jns 0x43ff8b
push dword [esp + 0x1c]
call fcn.004ba1ee
add esp, 4
mov esi, dword [esp]
lea ecx, [esi + 0x9c]
call fcn.004a3ba0
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x570c30
mov dword [esi + 0xc], 0x570c40
cmp byte [esi + 0x37], 0
jns 0x43ffbf
push dword [esi + 0x2c]
call fcn.004ba1ee
add esp, 4
add esi, 0x40
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0048bd80
mov ecx, edi
call fcn.0048bdd0
mov ecx, esi
call fcn.0048bd70
mov ecx, dword [esp + 0x428]
xor ecx, ebp
call fcn.004babe3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x1c]
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 0x43ff63
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.004cfca6
add esp, 0xc
test eax, eax
js 0x44002e
add ebx, eax
cmp edi, ebx
ja 0x440011
mov eax, dword [0x58bb30]
jmp 0x43ff63
lea edx, [esp + 0x14]
mov eax, dword [esp]
mov dword [edx], eax
lea eax, [esp + 0x1c]
mov dword [edx + 4], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
sub esp, 8
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
mov ecx, str.LogMessage
call fcn.00503170
add esp, 8
jmp 0x43feee
cmp byte [0x58fe00], 0
jne 0x43fefb
mov byte [0x58fe00], 1
mov eax, dword [0x58fe08]
mov ecx, dword [0x58e4fc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x440283
mov ecx, dword [esp]
lea eax, [esp + 0x28]
push eax
call fcn.00502e00
movzx eax, byte [esp + 0x33]
test al, al
jns 0x440205
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jmp 0x44020c
cmp byte [esp + 0x27], 0
jns 0x4400dd
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x58bb30]
jmp 0x43ff49
call fcn.00502ad0
test al, al
je 0x43ff6b
lea eax, [esp + 0x1c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov dword [esp + 0x28], 0xffffffff
cmovs eax, dword [eax]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
push dword [0x58fde4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x43ff6b
mov ecx, dword [0x58fda0]
test ecx, ecx
je 0x440161
movzx eax, byte [esp + 0x27]
test al, al
jns 0x440153
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x44015a
and eax, 0x7f
lea edx, [esp + 0x1c]
push eax
push edx
call fcn.005019c0
mov esi, 0x400
push esi
push 0xff
lea eax, [esp + 0x30]
push eax
call fcn.004bd870
add esp, 0xc
cmp byte [esp + 0x27], 0
jns 0x440186
mov eax, dword [esp + 0x1c]
jmp 0x44018a
lea eax, [esp + 0x1c]
push esi
push eax
lea esi, [esp + 0x30]
push esi
call fcn.0049afa0
add esp, 0xc
push esi
call fcn.0048bdd0
add esp, 4
call fcn.00502cf0
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x4402c6
mov dword [esp + 0x14], 0xffffffff
call fcn.00502cf0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x4402c9
shl edx, 2
add edx, dword [eax]
lea esi, [esp + 0x14]
mov ecx, esi
push edx
call fcn.00494db0
cmp dword [esi], 0
jne 0x4401f8
lea ecx, [esp + 0x14]
call fcn.00494d80
jmp 0x43ff78
cmp byte [esp + 0x27], 0
jns 0x44023b
mov esi, dword [esp + 0x1c]
jmp 0x44023f
and eax, 0x7f
lea ecx, [esp + 0x28]
push eax
push ecx
push dword [0x58fe04]
call fcn.004a3bc0
add esp, 0xc
cmp byte [esp + 0x33], 0
jns 0x44022f
push dword [esp + 0x28]
call fcn.004ba1ee
add esp, 4
mov byte [0x58fe00], 0
jmp 0x43fefb
lea esi, [esp + 0x1c]
mov edi, esi
add edi, dword [esp + 4]
je 0x4402cc
push edi
call fcn.004d4180
add esp, 4
mov edx, dword [esp]
mov ecx, dword [edx + 0x90]
mov ebx, dword [esp + 4]
sub ebx, ecx
add esi, ecx
lea ecx, [esp + 0x14]
push eax
push edi
push ebx
push esi
push dword [edx + 0x98]
push dword [edx + 0x94]
call fcn.00502d50
jmp 0x4401ea
push 0x58fe08
call fcn.004ba267
add esp, 4
cmp dword [0x58fe08], 0xffffffff
jne 0x4400a7
push 0x400
push str.LOG_FATAL
call fcn.00457270
add esp, 8
mov dword [0x58fe04], eax
push 0x58fe08
call fcn.004ba2dd
add esp, 4
jmp 0x4400a7
int3
int3
int3