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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x658318
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x50a], 0
mov dword [esp + 0x20], ebx
je 0x5b181d
add ebx, 0x108
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 4
nop
mov esi, ebx
call fcn.005b33f0
xor esi, esi
cmp eax, esi
jne 0x5b183e
push 0xffffffffffffffff
push esi
add ebx, 0x44
push ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
call fcn.00405660
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x98], esi
push ecx
xor eax, eax
mov byte [esp + 0x20], 0x2f
call fcn.005474b0
cmp eax, 0xffffffff
je 0x5b166c
mov byte [esp + 0x14], 0x2f
jmp 0x5b1610
push eax
xor ecx, ecx
lea esi, [esp + 0x30]
lea edx, [esp + 0x4c]
lea ebx, [eax + 1]
call fcn.00446c30
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp dword [esp + 0x44], edi
jae 0x5b1636
lea eax, [esp + 0x30]
push eax
call fcn.00629386
add esp, 4
cmp dword [esp + 0x44], edi
jb 0x5b1652
mov edx, dword [esp + 0x30]
push edx
call fcn.0062414c
add esp, 4
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
mov eax, ebx
call fcn.005474b0
cmp eax, 0xffffffff
jne 0x5b1610
jmp 0x5b1671
mov edi, 0x10
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x5b167f
lea eax, [esp + 0x4c]
push eax
push str.AdFile:__s_r_n
lea esi, [esp + 0x34]
call fcn.005b73b0
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x5b169b
mov eax, dword [eax + 4]
jmp 0x5b169e
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [esp + 0x44], edi
jb 0x5b16b8
mov edx, dword [esp + 0x30]
push edx
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x5b16c6
lea eax, [esp + 0x4c]
push 0x6653b0
push eax
call fcn.00624db9
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5b1726
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x2c]
call fcn.005b3400
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp dword [esp + 0x44], esi
jae 0x5b16fa
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
push ebx
push ecx
push 1
push eax
call fcn.006252d0
push ebx
call fcn.00624e3e
add esp, 0x14
cmp dword [esp + 0x44], esi
jb 0x5b1724
mov edx, dword [esp + 0x30]
push edx
call fcn.0062414c
add esp, 4
mov edi, esi
mov eax, dword [esp + 0x18]
call fcn.005b3150
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x60], edi
jb 0x5b174d
mov eax, dword [esp + 0x4c]
push eax
call fcn.0062414c
add esp, 4
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x548], 0
jbe 0x5b1808
mov eax, dword [esi + 0x544]
mov edi, dword [eax]
add esi, 0x540
cmp edi, eax
jne 0x5b1779
call fcn.0062472f
push 0xffffffffffffffff
lea eax, [edi + 8]
push 0
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
call fcn.00405660
mov dword [esp + 0x90], 2
mov eax, dword [esi + 4]
mov eax, dword [eax]
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.005c31e0
mov edi, dword [esp + 0x20]
add edi, 0x68
lea ecx, [esp + 0x64]
mov esi, ebx
call fcn.005b3060
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x7c], 0x10
jb 0x5b17f3
mov edx, dword [esp + 0x68]
push edx
call fcn.0062414c
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
add ebx, 0x100
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebx
jne 0x5b15b0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00626d59
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x5b1808
cmp eax, 1
je 0x5b1751
lea ecx, [ebx + 0x44]
push ecx
mov edi, str.Error_on_AdFile:
lea esi, [esp + 0x4c]
call fcn.00447340
add esp, 4
push eax
mov edi, 0x67d784
lea esi, [esp + 0x30]
mov dword [esp + 0x94], 1
call fcn.0041fc00
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x5b188d
mov eax, dword [eax + 4]
jmp 0x5b1890
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [esp + 0x44], esi
jb 0x5b18aa
mov edx, dword [esp + 0x30]
push edx
call fcn.0062414c
add esp, 4
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x60], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x5b18dd
mov eax, dword [esp + 0x4c]
push eax
call fcn.0062414c
add esp, 4
mov eax, ebx
call fcn.005b3150
jmp 0x5b1751