Function at 0x1005d4b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1009b1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
push 6
mov edi, ecx
xor ebx, ebx
push str.ADVERT
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.10004560
mov ecx, dword [edi + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x80], ebx
call eax
mov ebp, 8
cmp dword [esp + 0x30], ebp
mov esi, eax
mov dword [esp + 0x7c], 0xffffffff
jb 0x1005d53f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10079508
add esp, 4
cmp esi, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
je 0x1005d60e
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push esi
mov dword [esp + 0x38], ebx
call eax
mov esi, eax
cmp esi, ebx
je 0x1005d713
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push esi
lea eax, [esp + 0x58]
push eax
call edx
push ebp
push str.Resource
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], 1
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.10004560
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x84], 2
call fcn.10003470
add esp, 8
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x30], ebp
mov byte [esp + 0x7c], 1
jb 0x1005d5e5
mov edx, dword [esp + 0x1c]
push edx
call fcn.10079508
add esp, 4
cmp byte [esp + 0x17], bl
je 0x1005d615
push esi
mov ecx, edi
call fcn.1005c030
test al, al
jne 0x1005d6e3
cmp dword [esp + 0x6c], ebp
jb 0x1005d60e
mov edx, dword [esp + 0x58]
push edx
call fcn.10079508
add esp, 4
xor al, al
jmp 0x1005d721
push 0xf
push str.CurrentResource
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.10004560
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x84], 3
call fcn.10003470
add esp, 8
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x30], ebp
mov byte [esp + 0x7c], 1
jb 0x1005d66f
mov edx, dword [esp + 0x1c]
push edx
call fcn.10079508
add esp, 4
cmp byte [esp + 0x17], bl
je 0x1005d6e3
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov ecx, dword [edi + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x38]
push edx
push esi
mov byte [esp + 0x84], 4
call eax
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x1005d6ac
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.10003220
add esp, 8
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x34], eax
mov byte [esp + 0x7c], 1
jb 0x1005d6d2
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10079508
add esp, 4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
push esi
call eax
cmp dword [esp + 0x6c], ebp
mov esi, eax
mov dword [esp + 0x7c], 0xffffffff
jb 0x1005d70b
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10079508
add esp, 4
cmp esi, ebx
jne 0x1005d571
mov eax, dword [esp + 0x34]
push eax
mov ecx, edi
call fcn.10059430
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x6c
ret