Function at 0x407160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d01db
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
push ebp
push esi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x18], 4
lea ebp, [ebx + 8]
mov edi, edi
cmp byte [esp + 0x1e4], bl
je 0x4073f8
cmp dword [0x4fe7b4], ebx
je 0x4073f8
cmp byte [0x4fe3e0], bl
je 0x4073f8
cmp byte [0x4fe3e1], bl
jne 0x4073f8
cmp byte [0x4fe7d8], bl
mov byte [0x4fe3e1], 1
jne 0x4073b0
push 0x6b0
call fcn.004a84f2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1dc], 1
je 0x40721c
mov esi, eax
call fcn.00454de0
mov esi, eax
jmp 0x40721e
xor esi, esi
mov byte [esp + 0x1dc], bl
mov eax, dword [esi]
mov edx, dword [eax + 0x170]
push 0x4fe7a0
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x24c]
push esi
mov ecx, edi
call edx
mov edx, dword [esi]
lea eax, [esp + 0x58]
push eax
mov eax, dword [edx + 0x128]
mov ecx, esi
call eax
push eax
mov edx, str.advertcheck
call fcn.0044aae0
mov byte [esp + 0x1dc], 2
cmp dword [esp + 0x6c], ebx
je 0x407281
cmp dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x5c]
jae 0x40727b
lea ecx, [esp + 0x5c]
push esi
call fcn.004464c0
cmp dword [esp + 0x1fc], ebx
je 0x4072b3
cmp dword [esp + 0x200], ebp
mov eax, dword [esp + 0x1ec]
jae 0x4072a1
lea eax, [esp + 0x1ec]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x184]
push str.normaltextcolor
mov ecx, esi
call eax
cmp dword [esp + 0x204], 1
jne 0x407316
mov edx, dword [esi]
mov eax, dword [edx + 0x128]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call eax
push eax
mov edx, str.advertcheck1
call fcn.0044aae0
mov byte [esp + 0x1dc], 3
cmp dword [esp + 0x50], ebx
je 0x4072fb
cmp dword [esp + 0x54], ebp
mov ecx, dword [esp + 0x40]
jae 0x4072f5
lea ecx, [esp + 0x40]
push esi
call fcn.004464c0
mov byte [esp + 0x1dc], 2
cmp dword [esp + 0x54], ebp
jb 0x407316
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a85e6
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + 0x2e0]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 1
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], 1
call fcn.00408140
mov esi, 1
sub dword [esp + 0x18], esi
call fcn.0040ddf0
test al, 1
je 0x40735f
cmp dword [0x4fe748], ebx
mov eax, 0x4fe490
jne 0x407364
mov eax, 0x4fe7a0
mov edx, dword [eax + 0x2c0]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
call fcn.004127e0
add esp, 4
call fcn.00412900
mov byte [eax], 1
mov byte [esp + 0x1dc], bl
cmp dword [esp + 0x70], ebp
jb 0x4075e5
mov edx, dword [esp + 0x5c]
push edx
call fcn.004a85e6
add esp, 4
jmp 0x4075e5
call fcn.0040ddf0
test al, 1
je 0x4073c6
cmp dword [0x4fe748], ebx
mov eax, 0x4fe490
jne 0x4073cb
mov eax, 0x4fe7a0
mov eax, dword [eax + 0x2c0]
lea ecx, [esp + 0x10]
push ecx
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call fcn.004127e0
add esp, 4
call fcn.00412900
mov byte [eax], 1
mov esi, dword [0x4fe3e4]
lea eax, [esp + 0x74]
call fcn.004066a0
lea eax, [esp + 0x74]
push eax
push esi
mov byte [esp + 0x1e4], 4
call fcn.0040feb0
add esp, 8
test al, al
je 0x4075f1
push 0x6b0
call fcn.004a84f2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1dc], 5
je 0x40744d
mov esi, eax
call fcn.00454de0
mov esi, eax
jmp 0x40744f
xor esi, esi
mov byte [esp + 0x1dc], 4
mov edx, dword [esi]
mov edx, dword [edx + 0x170]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x24c]
push esi
mov ecx, edi
call edx
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edx + 0x128]
mov ecx, esi
call eax
push eax
mov edx, str.advertcheck
call fcn.0044aae0
mov byte [esp + 0x1dc], 6
cmp dword [esp + 0x50], ebx
je 0x4074b3
cmp dword [esp + 0x54], ebp
mov ecx, dword [esp + 0x40]
jae 0x4074ad
lea ecx, [esp + 0x40]
push esi
call fcn.004464c0
cmp dword [esp + 0x1fc], ebx
je 0x4074e5
cmp dword [esp + 0x200], ebp
mov eax, dword [esp + 0x1ec]
jae 0x4074d3
lea eax, [esp + 0x1ec]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x184]
push str.normaltextcolor
mov ecx, esi
call eax
cmp dword [esp + 0x204], 1
jne 0x407548
mov edx, dword [esi]
mov eax, dword [edx + 0x128]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call eax
push eax
mov edx, str.advertcheck1
call fcn.0044aae0
mov byte [esp + 0x1dc], 7
cmp dword [esp + 0x6c], ebx
je 0x40752d
cmp dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x5c]
jae 0x407527
lea ecx, [esp + 0x5c]
push esi
call fcn.004464c0
mov byte [esp + 0x1dc], 6
cmp dword [esp + 0x70], ebp
jb 0x407548
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004a85e6
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + 0x2e0]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x190]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], esi
mov byte [esp + 0x34], bl
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c], 1
call fcn.00408140
mov ecx, dword [esp + 0x190]
mov eax, 1
sub dword [esp + 0x18], eax
add dword [0x4fe3e4], eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
call fcn.004127e0
add esp, 4
call fcn.00412900
mov byte [eax], 1
cmp dword [esp + 0x54], ebp
jb 0x4075c4
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a85e6
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov byte [esp + 0x1dc], bl
call fcn.00407640
cmp dword [esp + 0x18], ebx
jg 0x4071b0
jmp 0x4075fa
lea esi, [esp + 0x74]
call fcn.00407640
cmp dword [esp + 0x200], ebp
jb 0x407613
mov edx, dword [esp + 0x1ec]
push edx
call fcn.004a85e6
add esp, 4
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.004a85d7
add esp, 0x1d0
ret