Function at 0x407b60
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
sub esp, 0x178
push ebp
mov ebp, dword [esp + 0x184]
push esi
push edi
mov edi, ecx
push edi
push 0
push 0
mov esi, eax
mov dword [esp + 0x18], 0
call fcn.00403030
add esp, 0xc
cmp eax, 2
je 0x407ba4
push eax
call fcn.00402d80
add esp, 4
push eax
call fcn.00407200
push 3
call fcn.0040a1e4
call fcn.00401dc0
test eax, eax
je 0x407bde
lea eax, [esp + 0x18]
push eax
push 0
call fcn.00402190
add esp, 8
test eax, eax
je 0x407c1f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00402af0
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x18], eax
call fcn.00402190
add esp, 0xc
jmp 0x407c1f
test esi, esi
je 0x407c1f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407be7
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x407c1f
mov eax, esi
lea edx, [eax + 1]
jmp 0x407c00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c00
sub eax, edx
inc eax
push eax
call fcn.00402af0
add esp, 4
push esi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [str.dbremote]
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.00403ab0
mov edx, dword [esp + 0x24]
mov ebx, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
push ebx
mov dword [esp + 0x38], ebx
call fcn.00409060
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x407c89
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00409090
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call fcn.004038e0
mov edx, dword [esp + 0x20]
push edx
call fcn.00402a80
add esp, 0x14
call fcn.00402fd0
push 4
call fcn.0040a1e4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18c]
and ecx, 0xfffffffc
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ecx
test byte [esi], 1
mov eax, 6
jne 0x407cb3
mov eax, ebp
test eax, eax
mov dword [esp + 0x3c], eax
je 0x407cc2
mov eax, dword [esi]
test ah, 2
je 0x407cc5
or dword [esi], 2
lea ecx, [esp + 0x24]
push ecx
push 0
call fcn.00401750
mov eax, dword [esi + 4]
xor ebp, ebp
add esp, 8
cmp eax, ebp
je 0x407cf3
or dword [esp + 0x40], 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], eax
jmp 0x407d1e
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
and ecx, 0xfffffffb
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00402c50
add esp, 0x10
test eax, eax
je 0x407d4d
lea edx, [esp + 0x24]
push edx
call fcn.00408980
add esp, 4
test eax, eax
jne 0x407d85
test byte [esp + 0x40], 4
jne 0x407d4d
mov eax, dword [esp + 0x44]
push eax
call fcn.00402a80
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00402a80
add esp, 8
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.00409090
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.004038e0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00402a80
add esp, 0x14
call fcn.00402fd0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x178
ret
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebp
call section..text
mov edi, eax
mov eax, dword [esi]
add esp, 0x18
test ah, 1
mov dword [esp + 0x20], edi
je 0x407e17
lea ecx, [esp + 0x24]
push ecx
call fcn.00408680
mov al, byte [esp + 0x44]
add esp, 4
test al, 4
jne 0x407de8
mov edx, dword [esp + 0x44]
push edx
call fcn.00402a80
mov eax, dword [esp + 0x28]
push eax
call fcn.00402a80
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.00409090
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.004038e0
mov eax, dword [esp + 0x20]
push eax
call fcn.00402a80
add esp, 0x14
call fcn.00402fd0
push 5
call fcn.0040a1e4
cmp edi, ebp
jne 0x407ea0
call fcn.00401dc0
test eax, eax
je 0x407e5f
push pe_nt_image_headers32
lea ecx, [esp + 0x8c]
push ecx
push 0x1abf
call fcn.00403690
lea edx, [esp + 0x94]
push 1
push edx
call fcn.00401b30
add esp, 0x14
call fcn.00401da0
mov edi, dword [esp + 0x20]
jmp 0x407fc8
mov eax, dword [esi]
test ah, 2
mov edi, 0xff
jne 0x407e91
mov eax, dword [esp + 0x64]
cmp eax, ebp
jl 0x407e7c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x407e7e
xor eax, eax
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push edx
push ecx
push eax
call fcn.00408b40
add esp, 0xc
mov dword [0x41db5c], 1
jmp 0x407fc8
push esi
call fcn.00406ea0
add esp, 4
test ax, ax
je 0x407fc3
mov eax, dword [esi]
test ah, 2
jne 0x407ec6
lea edx, [esp + 0x24]
push edx
call fcn.00408620
add esp, 4
call fcn.00401d60
lea eax, [esp + 0x50]
push eax
push 0x5000
push 0x407b30
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], 1
call fcn.00409fd9
add esp, 0xc
cmp eax, 0xffffffff
je 0x407fb8
push ebp
push 0x64
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x407f3c
test byte [esi], 2
je 0x407f3c
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x407fa3
mov eax, dword [esp + 0x54]
test eax, eax
je 0x407fa3
push 0
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
call edi
test eax, eax
jle 0x407f7f
mov eax, dword [0x41db5c]
test eax, eax
jne 0x407f7f
call fcn.004080b0
test eax, eax
je 0x407f6b
lea edx, [esp + 0x6c]
push edx
push eax
call ebp
test eax, eax
jne 0x407f20
lea eax, [esp + 0x6c]
push eax
call ebx
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407f20
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [0x41db5c], 1
jne 0x407fa3
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x407f97
mov eax, dword [esp + 0x68]
test eax, eax
je 0x407fb4
push eax
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
call fcn.00407160
jmp 0x407fc8
mov edi, 3
call fcn.00401d80
mov edx, dword [esp + 0x20]
push edx
call fcn.00401710
lea eax, [esp + 0x28]
push eax
call fcn.00408680
mov al, byte [esp + 0x48]
add esp, 8
test al, 4
jne 0x408003
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00402a80
mov edx, dword [esp + 0x28]
push edx
call fcn.00402a80
add esp, 8
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00409090
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call fcn.004038e0
mov edx, dword [esp + 0x20]
push edx
call fcn.00402a80
call fcn.00402fd0
push str.c:_tempmemleak.out
call fcn.00401740
add esp, 0x18
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x178
ret