Function at 0x402a40
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4200d6
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x930], eax
mov dword [ebp - 0x944], 0x42147c
mov dword [ebp - 0x938], 0x421644
mov dword [ebp - 0x934], 0x421648
mov eax, dword [ebp + 8]
mov dword [ebp - 0x93c], eax
cmp dword [ebp + 8], 0
je 0x402c03
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410000
add esp, 4
test eax, eax
je 0x402c03
mov edx, dword [ebp + 8]
push edx
call fcn.00410000
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax - 1]
mov dword [ebp - 0x92c], edx
mov eax, dword [ebp - 0x92c]
cmp eax, dword [ebp + 8]
jb 0x402bed
push 0x42164c
mov ecx, dword [ebp - 0x92c]
push ecx
call fcn.00401320
add esp, 8
test eax, eax
je 0x402b1f
mov edx, dword [ebp - 0x92c]
add edx, 2
push edx
call fcn.0040eb7e
add esp, 4
mov dword [ebp - 0x944], eax
mov eax, dword [ebp - 0x92c]
mov byte [eax], 0
push 0x421650
mov ecx, dword [ebp - 0x92c]
push ecx
call fcn.00401320
add esp, 8
test eax, eax
je 0x402b58
mov edx, dword [ebp - 0x92c]
add edx, 2
push edx
call fcn.0040eb7e
add esp, 4
mov dword [ebp - 0x938], eax
mov eax, dword [ebp - 0x92c]
mov byte [eax], 0
push 0x421654
mov ecx, dword [ebp - 0x92c]
push ecx
call fcn.00401320
add esp, 8
test eax, eax
je 0x402ba0
mov edx, dword [ebp - 0x92c]
add edx, 2
push edx
call fcn.0040eb7e
add esp, 4
mov dword [ebp - 0x934], eax
mov eax, dword [ebp - 0x92c]
sub eax, 1
mov dword [ebp - 0x92c], eax
mov ecx, dword [ebp - 0x92c]
mov byte [ecx], 0
push 0x421658
mov edx, dword [ebp - 0x92c]
push edx
call fcn.00401320
add esp, 8
test eax, eax
je 0x402bd9
mov eax, dword [ebp - 0x92c]
add eax, 2
push eax
call fcn.0040eb7e
add esp, 4
mov dword [ebp - 0x93c], eax
mov ecx, dword [ebp - 0x92c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x92c]
sub edx, 1
mov dword [ebp - 0x92c], edx
jmp 0x402ad7
mov eax, dword [ebp - 0x93c]
push eax
push 0x42bbd0
call fcn.0040ff00
add esp, 8
jmp 0x402c6c
lea ecx, [ebp - 0x31c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x704]
push eax
call fcn.0040ff00
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x704]
push ecx
mov edx, dword [ebp - 0x930]
push edx
lea ecx, [ebp - 0x924]
call fcn.004032d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x924]
call fcn.004034a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x924]
call fcn.00402260
push 0x42bbd0
call fcn.00410000
add esp, 4
test eax, eax
jne 0x402c84
push 1
call fcn.00410fe6
push 0x42bbd0
lea eax, [ebp - 0x114]
push eax
call fcn.0040ff00
add esp, 8
push 0x421590
lea ecx, [ebp - 0x114]
push ecx
call fcn.0040ff10
add esp, 8
push str.nponflow.dll
lea edx, [ebp - 0x114]
push edx
call fcn.0040ff10
add esp, 8
push 0x76
lea eax, [ebp - 0x114]
push eax
call fcn.00402680
add esp, 8
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402cec
mov ecx, dword [ebp - 0x928]
push ecx
call fcn.00410fe6
push 0x42bbd0
lea edx, [ebp - 0x218]
push edx
call fcn.0040ff00
add esp, 8
push 0x421590
lea eax, [ebp - 0x218]
push eax
call fcn.0040ff10
add esp, 8
push str.onflowplayer0.dll
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040ff10
add esp, 8
push 0x77
lea edx, [ebp - 0x218]
push edx
call fcn.00402680
add esp, 8
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402d54
mov eax, dword [ebp - 0x928]
push eax
call fcn.00410fe6
lea ecx, [ebp - 0xa5c]
call fcn.00407db0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x9a0], ecx
lea edx, [ebp - 0x9a0]
push edx
lea ecx, [ebp - 0xa5c]
call fcn.00407e60
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402d9f
mov eax, dword [ebp - 0x928]
push eax
call fcn.00410fe6
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x99c], str.type
mov eax, 4
shl eax, 0
mov dword [ebp + eax - 0x99c], str.width
mov ecx, 4
shl ecx, 1
mov dword [ebp + ecx - 0x99c], str.height
mov edx, 4
imul eax, edx, 3
mov dword [ebp + eax - 0x99c], 0x421437
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x98c], 0x4212e4
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x934]
mov dword [ebp + eax - 0x98c], ecx
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 0x938]
mov dword [ebp + edx - 0x98c], eax
mov ecx, 4
imul edx, ecx, 3
mov dword [ebp + edx - 0x98c], 0x421437
lea eax, [ebp - 0x9a0]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.00407fa0
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402e66
mov ecx, dword [ebp - 0x928]
push ecx
call fcn.00410fe6
mov edx, dword [ebp - 0x930]
push edx
call fcn.004030f0
add esp, 4
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402e90
mov eax, dword [ebp - 0x928]
push eax
call fcn.00410fe6
lea ecx, [ebp - 0x9a0]
push ecx
mov edx, dword [ebp - 0x930]
push edx
call fcn.00402900
add esp, 8
mov dword [ebp - 0x940], eax
cmp dword [ebp - 0x940], 0
jne 0x402ebc
push 7
call fcn.00410fe6
mov eax, dword [ebp - 0x934]
push eax
call fcn.004112cf
add esp, 4
mov dword [ebp - 0x948], eax
mov ecx, dword [ebp - 0x938]
push ecx
call fcn.004112cf
add esp, 4
mov dword [ebp - 0x94c], eax
mov edx, dword [ebp - 0x940]
mov dword [ebp - 0x97c], edx
mov dword [ebp - 0x978], 0
mov eax, dword [ebp - 0x948]
mov dword [ebp - 0x970], eax
mov ecx, dword [ebp - 0x94c]
mov dword [ebp - 0x96c], ecx
mov dword [ebp - 0x960], 1
lea edx, [ebp - 0x9a0]
push edx
lea ecx, [ebp - 0xa5c]
call fcn.00408060
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402f4b
mov eax, dword [ebp - 0x928]
push eax
call fcn.00410fe6
lea ecx, [ebp - 0x9a0]
push ecx
lea ecx, [ebp - 0xa5c]
call fcn.00407f30
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402f78
mov edx, dword [ebp - 0x928]
push edx
call fcn.00410fe6
lea eax, [ebp - 0x9a0]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.00408110
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402fa5
mov ecx, dword [ebp - 0x928]
push ecx
call fcn.00410fe6
lea edx, [ebp - 0x9a0]
push edx
mov eax, dword [ebp - 0x944]
push eax
call fcn.004112cf
add esp, 4
add eax, 0x12c
push eax
mov ecx, dword [ebp - 0x930]
push ecx
call fcn.004031a0
add esp, 0xc
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x402feb
mov edx, dword [ebp - 0x928]
push edx
call fcn.00410fe6
lea eax, [ebp - 0x9a0]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.004080c0
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x403018
mov ecx, dword [ebp - 0x928]
push ecx
call fcn.00410fe6
lea edx, [ebp - 0x9a0]
push edx
lea ecx, [ebp - 0xa5c]
call fcn.00407e20
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 0
je 0x403045
mov eax, dword [ebp - 0x928]
push eax
call fcn.00410fe6
push 0x3e7
mov ecx, dword [ebp - 0x930]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x950], eax
push 0
push 0
push 0
lea edx, [ebp - 0x9bc]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4030af
lea eax, [ebp - 0x9bc]
push eax
mov ecx, dword [ebp - 0x950]
push ecx
mov edx, dword [ebp - 0x9bc]
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4030ad
lea eax, [ebp - 0x9bc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x9bc]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40305d
lea ecx, [ebp - 0xa5c]
call fcn.004080a0
push 0
call fcn.00410fe6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa5c]
call fcn.00407dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret