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

Disassembly:
push 0xffffffffffffffff
push 0x4c8ef2
mov eax, dword fs:[0]
push eax
sub esp, 0x8ac
mov eax, dword [0x4f59b8]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x8c0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x44], bl
mov dword [esp + 0x1c], esi
jne 0x407a81
mov dword [esp + 0x18], ebx
mov ebp, 7
push ebx
push 0x4d6590
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00402f90
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
lea ecx, [esi + 0x20]
push 0x4f3178
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x8d0], ebx
call eax
mov edi, 8
cmp dword [esp + 0x38], edi
mov esi, eax
mov dword [esp + 0x8c8], 0xffffffff
jb 0x407821
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0049f16d
add esp, 4
cmp esi, ebx
je 0x407a79
cmp dword [esp + 0x18], 5
jg 0x407ac7
push 0x104
lea edx, [esp + 0x2b8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x100
lea eax, [esp + 0xb8]
push eax
push 0x100
lea ecx, [esp + 0x6c8]
push ecx
push 0x100
lea edx, [esp + 0x4d0]
push edx
push 3
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x2d4]
push ecx
call fcn.0049fdaf
add esp, 0x24
push ebp
push str.wauditu
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00402f90
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x8d4], 1
call fcn.00407600
add esp, 0xc
cmp dword [esp + 0x38], edi
mov byte [esp + 0x8c8], 3
jb 0x4078e8
mov edx, dword [esp + 0x24]
push edx
call fcn.0049f16d
add esp, 4
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
mov byte [esp + 0x1f], bl
call fcn.004073d0
add esp, 8
cmp byte [esp + 0x17], bl
jne 0x407a26
lea eax, [esp + 0xac]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407930
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x44]
call fcn.00402f90
lea eax, [esp + 0x4bc]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x8d4], 4
call fcn.00407600
lea ecx, [esp + 0x9c]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0x8e0], 5
call fcn.004076c0
add esp, 0x18
cmp dword [esp + 0x70], edi
jb 0x4079a4
mov eax, dword [esp + 0x5c]
push eax
call fcn.0049f16d
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
cmp dword [esp + 0x54], edi
mov byte [esp + 0x8c8], 8
jb 0x4079cc
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0049f16d
add esp, 4
cmp dword [esp + 0x8c], edi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jae 0x4079ea
lea eax, [esp + 0x78]
push eax
call fcn.00405ed0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x407a85
cmp dword [esp + 0x8c], edi
jb 0x407a13
mov edx, dword [esp + 0x78]
push edx
call fcn.0049f16d
add esp, 4
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x8c8], 0xffffffff
jb 0x407a55
mov eax, dword [esp + 0x94]
push eax
call fcn.0049f16d
add esp, 4
add dword [esp + 0x18], 1
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
jmp 0x4077c5
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x44], 1
xor eax, eax
jmp 0x407ac9
cmp dword [esp + 0x8c], edi
jb 0x407a9b
mov edx, dword [esp + 0x78]
push edx
call fcn.0049f16d
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x407ac7
mov eax, dword [esp + 0x94]
push eax
call fcn.0049f16d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x8c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8a8]
xor ecx, esp
call fcn.0049fcf1
add esp, 0x8b8
ret