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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x793298
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x50a], 0
mov dword [esp + 0x14], ebx
je 0x5c132b
add ebx, 0x108
mov dword [esp + 0x18], 4
jmp 0x5c1000
mov eax, ebx
call fcn.005e90a0
xor esi, esi
cmp eax, esi
jne 0x5c11a5
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0x44]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
call fcn.00401530
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x90], esi
push edx
xor eax, eax
mov byte [esp + 0x1c], 0x2f
call fcn.00402270
cmp eax, 0xffffffff
je 0x5c10bc
mov byte [esp + 0x10], 0x2f
jmp 0x5c1060
push eax
xor ecx, ecx
lea esi, [esp + 0x28]
lea edx, [esp + 0x44]
lea edi, [eax + 1]
call fcn.00401f90
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jae 0x5c1086
lea eax, [esp + 0x28]
push eax
call fcn.006497a5
add esp, 4
cmp dword [esp + 0x3c], esi
jb 0x5c10a2
mov eax, dword [esp + 0x28]
push eax
call fcn.006441c7
add esp, 4
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, edi
call fcn.00402270
cmp eax, 0xffffffff
jne 0x5c1060
jmp 0x5c10c1
mov esi, 0x10
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x5c10cf
lea eax, [esp + 0x44]
push eax
push str.AdFile:__s_r_n
lea esi, [esp + 0x2c]
call fcn.00439900
mov esi, 0x10
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x5c10f0
mov eax, dword [eax + 4]
jmp 0x5c10f3
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [esp + 0x3c], esi
jb 0x5c110d
mov eax, dword [esp + 0x28]
push eax
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x5c111b
lea eax, [esp + 0x44]
push 0x81f560
push eax
call fcn.00644aa4
mov edi, eax
add esp, 8
test edi, edi
je 0x5c1177
lea esi, [esp + 0x24]
mov eax, ebx
call fcn.005e90b0
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jae 0x5c114d
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
push edi
push ecx
push 1
push eax
call fcn.00644ce0
push edi
call fcn.00644dd9
add esp, 0x14
cmp dword [esp + 0x3c], esi
jb 0x5c1177
mov edx, dword [esp + 0x28]
push edx
call fcn.006441c7
add esp, 4
mov eax, ebx
call fcn.005e9000
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x5c124f
mov eax, dword [esp + 0x44]
push eax
call fcn.006441c7
add esp, 4
jmp 0x5c124f
cmp eax, 2
je 0x5c131a
cmp eax, 1
je 0x5c124f
lea ecx, [ebx + 0x44]
push ecx
mov edi, str.Error_on_AdFile:
lea esi, [esp + 0x44]
call fcn.00403060
add esp, 4
push eax
mov edi, 0x81d6c8
lea esi, [esp + 0x28]
mov dword [esp + 0x8c], 1
call fcn.00402fb0
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x5c11f8
mov eax, dword [eax + 4]
jmp 0x5c11fb
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [esp + 0x3c], esi
jb 0x5c1215
mov edx, dword [esp + 0x28]
push edx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x58], esi
jb 0x5c1248
mov eax, dword [esp + 0x44]
push eax
call fcn.006441c7
add esp, 4
mov eax, ebx
call fcn.005e9000
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x578], 0
jbe 0x5c131a
mov eax, dword [edi + 0x574]
mov esi, dword [eax]
mov eax, dword [edi + 0x560]
add edi, 0x560
test eax, eax
jne 0x5c134c
call fcn.006441b7
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x5c128d
call fcn.006441b7
push 0xffffffffffffffff
lea eax, [esi + 8]
push 0
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.00401530
mov dword [esp + 0x88], 2
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [esp + 0x24]
push ecx
call fcn.0041bd30
mov edi, dword [esp + 0x14]
add edi, 0x68
lea ecx, [esp + 0x5c]
mov esi, ebx
call fcn.005e8f10
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0x5c1305
mov edx, dword [esp + 0x60]
push edx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
add ebx, 0x100
sub dword [esp + 0x18], 1
jne 0x5c1000
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
jmp 0x5c1283