Function at 0x491660
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5410cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov al, byte [esi + 0x4f6]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x1c], esi
je 0x491a41
push edi
lea edi, [esi + 0x104]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], 4
mov ecx, edi
call fcn.00489fd0
cmp eax, ebx
jne 0x491875
push 0xffffffffffffffff
push ebx
add edi, 0x44
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.0041ad80
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], 0x2f
call fcn.00477500
cmp eax, 0xffffffff
je 0x49176c
push eax
push ebx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x3c]
lea esi, [eax + 1]
call fcn.00440930
mov eax, dword [ebp - 0x78]
mov edi, 0x10
cmp eax, edi
mov eax, dword [ebp - 0x8c]
jae 0x491723
lea eax, [ebp - 0x8c]
push eax
call fcn.0053ba74
mov eax, dword [ebp - 0x78]
add esp, 4
cmp eax, edi
jb 0x491742
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00527b8e
add esp, 4
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
mov byte [ebp - 0x14], 0x2f
call fcn.00477500
cmp eax, 0xffffffff
jne 0x4916f7
jmp 0x491771
mov edi, 0x10
cmp dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x38]
jae 0x49177c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xac]
push str.AdFile:__s_r_n
push ecx
call fcn.00481330
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, edi
jb 0x49179d
mov eax, dword [eax + 4]
jmp 0x4917a0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x94], edi
jb 0x4917be
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
jae 0x4917df
lea eax, [ebp - 0x38]
push 0x54cb04
push eax
call fcn.00528841
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x491840
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x58]
push eax
call fcn.00489fe0
cmp dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x54]
jae 0x49180a
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
push esi
push ecx
push 1
push eax
call fcn.00528527
push esi
call fcn.0052829a
mov eax, dword [ebp - 0x40]
add esp, 0x14
cmp eax, edi
jb 0x491833
mov edx, dword [ebp - 0x54]
push edx
call fcn.00527b8e
add esp, 4
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov ecx, dword [ebp - 0x18]
call fcn.0048ad90
cmp dword [ebp - 0x24], edi
mov dword [ebp - 4], 0xffffffff
jb 0x491860
mov eax, dword [ebp - 0x38]
push eax
call fcn.00527b8e
add esp, 4
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
jmp 0x491941
cmp eax, 2
je 0x491a2a
cmp eax, 1
je 0x49193c
add edi, 0x44
push edi
lea ecx, [ebp - 0xe4]
push str.Error_on_AdFile:
push ecx
call fcn.00441360
push 0x5582b8
push eax
lea edx, [ebp - 0xc8]
push edx
mov dword [ebp - 4], 1
call fcn.004412b0
mov ecx, dword [eax + 0x18]
mov edi, 0x10
add esp, 0x18
cmp ecx, edi
jb 0x4918c9
mov eax, dword [eax + 4]
jmp 0x4918cc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0xb0], edi
jb 0x4918ea
mov eax, dword [ebp - 0xc4]
push eax
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0xcc], edi
mov esi, 0xf
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xc4], bl
mov dword [ebp - 4], 0xffffffff
jb 0x49191f
mov ecx, dword [ebp - 0xe0]
push ecx
call fcn.00527b8e
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], ebx
mov byte [ebp - 0xe0], bl
call fcn.0048ad90
mov esi, dword [ebp - 0x1c]
mov edi, 0x10
cmp dword [esi + 0x534], ebx
jbe 0x491a27
mov eax, dword [esi + 0x530]
cmp eax, ebx
jne 0x49195b
xor eax, eax
jmp 0x49195d
mov eax, dword [eax]
push 0xffffffffffffffff
add eax, 8
push ebx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
call fcn.0041ad80
mov eax, dword [esi + 0x530]
cmp eax, ebx
mov dword [ebp - 4], 2
jne 0x49198e
xor esi, esi
jmp 0x491990
mov esi, dword [eax]
cmp esi, eax
je 0x4919ec
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x18]
cmp eax, 0x10
jb 0x4919bf
inc eax
push eax
mov ecx, edi
call fcn.00407060
push eax
mov ecx, edi
call fcn.00407070
push ebx
mov ecx, edi
mov dword [edi + 0x18], 0xf
call fcn.0040fd40
push esi
call fcn.00527b8e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x534]
add esp, 4
dec ecx
mov dword [eax + 0x534], ecx
mov edi, 0x10
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x74]
push edx
add eax, 0x68
push eax
call fcn.0048d6c0
cmp dword [ebp - 0x5c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x491a17
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00527b8e
add esp, 4
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add edi, 0xfc
dec eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
jne 0x4916b1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00528d83
mov esp, ebp
pop ebp
ret