Function at 0x404a74
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x4247f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x50c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
lea ecx, [ebp - 0x214]
call fcn.0040a5b0
and dword [ebp - 4], 0
mov al, byte [ebp - 0x1e4]
mov byte [ebp + 0x5b], al
movzx eax, byte [ebp + 0x5b]
test eax, eax
jne 0x404ae1
or dword [ebp - 0x104], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.0040a7c0
mov eax, dword [ebp - 0x104]
jmp 0x405a31
movzx eax, byte [ebp - 0x1e4]
test eax, eax
je 0x404b05
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
mov eax, dword [eax + 8]
and eax, 8
je 0x404b05
mov dword [ebp - 0x64], 1
jmp 0x404b09
and dword [ebp - 0x64], 0
mov al, byte [ebp - 0x64]
mov byte [0x4316c0], al
and dword [ebp + 4], 0
and dword [ebp + 0x48], 0
and dword [ebp + 0x4c], 0
and dword [ebp + 0x50], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x214]
mov dword [ebp + 0x3c], eax
call fcn.00403f6b
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], edx
lea ecx, [ebp - 0x7c]
call fcn.00403e8c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040e840
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [0x4316c4], eax
lea ecx, [ebp - 0x98]
call fcn.00405b80
mov byte [ebp - 4], 3
lea eax, [ebp - 0x204]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0x10
jb 0x404b9b
mov eax, dword [ebp - 0x194]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
jmp 0x404ba1
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x18], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x250]
push eax
call fcn.0040dc50
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x51c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404c92
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405d34
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x404c92
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x84], 0x10
jb 0x404c24
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x14], eax
jmp 0x404c2d
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x190]
movsx eax, byte [eax - 1]
cmp eax, 0x5c
jne 0x404c92
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
dec eax
push eax
push 0
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405db0
mov dword [ebp - 0x140], eax
push dword [ebp - 0x140]
lea ecx, [ebp - 0x98]
call fcn.00405c2c
push 0
push 1
lea ecx, [ebp - 0x388]
call fcn.00406627
jmp 0x404be2
cmp dword [ebp - 0x84], 0x10
jb 0x404caf
mov eax, dword [ebp - 0x1d8]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp + 0x38], eax
jmp 0x404cb8
lea eax, [ebp - 0x98]
mov dword [ebp + 0x38], eax
push 1
push dword [ebp + 0x38]
call fcn.0040d000
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x404cdd
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405ce0
push dword [ebp + 0x7c]
lea ecx, [ebp - 0x2c8]
call fcn.00405ba6
mov byte [ebp - 4], 5
push str.args
lea ecx, [ebp - 0x268]
call fcn.00405ba6
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00406627
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00406627
push str.temp
lea ecx, [ebp - 0x298]
call fcn.00405ba6
mov byte [ebp - 4], 7
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x298]
call fcn.00406627
push str.path
lea ecx, [ebp - 0x340]
call fcn.00405ba6
mov byte [ebp - 4], 8
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x340]
call fcn.00406627
push 0x1a
lea eax, [ebp - 0x400]
push eax
call fcn.0040df20
pop ecx
pop ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0x10
jb 0x404df8
mov eax, dword [ebp - 0x1cc]
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp + 0x30], eax
jmp 0x404dfe
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x30], eax
push dword [ebp + 0x30]
lea ecx, [ebp - 0x328]
call fcn.00405ba6
mov byte [ebp - 4], 0xa
push str.appdata
lea ecx, [ebp - 0x370]
call fcn.00405ba6
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x370]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x370]
call fcn.00406627
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x328]
call fcn.00406627
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x400]
call fcn.00406627
push 0x1c
lea eax, [ebp - 0x3b8]
push eax
call fcn.0040df20
pop ecx
pop ecx
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x404eb2
mov eax, dword [ebp - 0x1c4]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp + 0x28], eax
jmp 0x404eb8
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x28], eax
push dword [ebp + 0x28]
lea ecx, [ebp - 0x358]
call fcn.00405ba6
mov byte [ebp - 4], 0xd
push str.appdata_local
lea ecx, [ebp - 0x2f8]
call fcn.00405ba6
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x2f8]
call fcn.00406627
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x358]
call fcn.00406627
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x3b8]
call fcn.00406627
push 0x26
lea eax, [ebp - 0x418]
push eax
call fcn.0040df20
pop ecx
pop ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp], eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp]
cmp dword [eax + 0x14], 0x10
jb 0x404f6c
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp]
mov eax, dword [eax]
mov dword [ebp + 0x20], eax
jmp 0x404f72
mov eax, dword [ebp]
mov dword [ebp + 0x20], eax
push dword [ebp + 0x20]
lea ecx, [ebp - 0x2e0]
call fcn.00405ba6
mov byte [ebp - 4], 0x10
push str.program_files
lea ecx, [ebp - 0x2b0]
call fcn.00405ba6
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x2b0]
call fcn.00406627
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x2e0]
call fcn.00406627
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x418]
call fcn.00406627
lea eax, [ebp - 0x3e8]
push eax
call fcn.0040e180
pop ecx
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x405023
mov eax, dword [ebp - 0x1c8]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 0x40], eax
jmp 0x405029
mov eax, dword [ebp + 8]
mov dword [ebp + 0x40], eax
push dword [ebp + 0x40]
lea ecx, [ebp - 0x280]
call fcn.00405ba6
mov byte [ebp - 4], 0x13
push str.uniqueid
lea ecx, [ebp - 0x310]
call fcn.00405ba6
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040ea00
mov byte [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x310]
call fcn.00406627
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x280]
call fcn.00406627
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x3e8]
call fcn.00406627
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x250]
call fcn.00406627
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x98]
call fcn.00406627
movzx eax, byte [ebp - 0x1e4]
test eax, eax
je 0x4050e8
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
mov eax, dword [eax + 8]
and eax, 4
je 0x4050e8
mov dword [ebp - 0x20], 1
jmp 0x4050ec
and dword [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x4051af
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x60], 0
je 0x40511e
mov eax, dword [ebp + 0x60]
cmp dword [eax + 0xc], 0
je 0x40511e
mov eax, dword [ebp + 0x60]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x60], eax
jmp 0x405104
cmp dword [ebp + 0x60], 0
je 0x4051af
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
and eax, 0x10000
je 0x4051af
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4051af
push str.MessageBoxA
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4051af
push 4
push str.Question
mov eax, dword [ebp + 0x60]
push dword [eax + 0x1c]
push 0
call dword [ebp - 0x50]
cmp eax, 6
je 0x4051af
and dword [ebp - 0xb8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00403efe
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.00406b2f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.0040a7c0
mov eax, dword [ebp - 0xb8]
jmp 0x405a31
mov byte [ebp - 4], 0x15
and dword [ebp + 0x34], 0
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp + 0x6c], eax
and dword [ebp + 0x54], 0
jmp 0x4051d9
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x54]
inc eax
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x6c], 0
je 0x4053c6
mov eax, dword [ebp + 0x54]
inc eax
push eax
lea ecx, [ebp + 0x48]
call fcn.00406135
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 0x48]
cdq
push 0x50
pop ecx
idiv ecx
cmp eax, dword [ebp + 0x54]
ja 0x40520b
push str.invalid_vector_T__subscript
call fcn.00421246
mov eax, dword [ebp + 0x54]
imul eax, eax, 0x50
add eax, dword [ebp + 0x48]
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x54]
inc eax
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
and eax, 0x800
je 0x4052c3
call fcn.0040ee40
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x405261
call fcn.0040ed40
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4052c3
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
or eax, 0x80000000
mov ecx, dword [ebp + 0x6c]
mov dword [ecx], eax
and dword [ebp - 0x21c], 0
and dword [ebp - 0x218], 0
push 0
push 0
lea ecx, [ebp - 0x22c]
call fcn.00406627
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 0x16
push dword [ebp - 0x160]
lea ecx, [ebp - 0x7c]
call fcn.0040e840
mov byte [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0x22c]
call fcn.00406627
jmp 0x4051c9
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
and eax, 0x1000
je 0x405306
movsx eax, byte [0x42b52c]
test eax, eax
jne 0x4052e0
and dword [ebp - 0x30], 0
jmp 0x4052ee
push 0x42b52c
call fcn.00418020
pop ecx
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push 0x42b52c
mov ecx, dword [ebp + 0x5c]
add ecx, 0x1c
call fcn.0040644a
jmp 0x4053b2
push 0
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x6c]
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040a830
mov dword [ebp - 0xc8], eax
push dword [ebp - 0xc8]
mov ecx, dword [ebp + 0x5c]
add ecx, 0x1c
call fcn.00405c2c
push 0
push 1
lea ecx, [ebp - 0x3a0]
call fcn.00406627
mov eax, dword [ebp + 0x5c]
cmp dword [eax + 0x2c], 0
jne 0x405359
mov dword [ebp - 0x80], 1
jmp 0x40535d
and dword [ebp - 0x80], 0
movzx eax, byte [ebp - 0x80]
test eax, eax
je 0x4053a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ec_08x__extract_failed
push dword [ebp + 0x5c]
call fcn.004042b5
add esp, 0xc
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
and eax, 0x20
je 0x4053a2
lea ecx, [ebp - 0x238]
call fcn.004178e7
push 0x42c424
lea eax, [ebp - 0x238]
push eax
call fcn.0041b68d
jmp 0x4053b2
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
and eax, 0x10
or eax, dword [ebp + 0x34]
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x5c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040e840
jmp 0x4051c9
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp + 0x70], eax
jmp 0x4053f8
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x70]
add eax, 0x50
mov dword [ebp + 0x70], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0xd8]
jne 0x405421
mov dword [ebp - 0x38], 1
jmp 0x405425
and dword [ebp - 0x38], 0
movzx eax, byte [ebp - 0x38]
test eax, eax
jne 0x405436
mov dword [ebp - 0x58], 1
jmp 0x40543a
and dword [ebp - 0x58], 0
movzx eax, byte [ebp - 0x58]
test eax, eax
je 0x40556d
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 2
je 0x405488
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
cmp dword [eax + 0x2c], 0
jne 0x40547c
mov dword [ebp - 0x40], 1
jmp 0x405480
and dword [ebp - 0x40], 0
movzx eax, byte [ebp - 0x40]
test eax, eax
je 0x40548d
jmp 0x4053da
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0x80000000
je 0x4054ac
jmp 0x4053da
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0x800
je 0x4054f8
call fcn.0040ee40
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x4054df
jmp 0x4053da
call fcn.0040ed40
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x4054f8
jmp 0x4053da
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xf4], eax
push 1
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax]
push dword [eax + 0x1c]
lea eax, [ebp - 0x3d0]
push eax
call fcn.0040bad0
add esp, 0x10
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xfc], eax
push dword [ebp - 0x144]
mov ecx, dword [ebp - 0xfc]
add ecx, 0x34
call fcn.00405c2c
push 0
push 1
lea ecx, [ebp - 0x3d0]
call fcn.00406627
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x16c], eax
push dword [ebp - 0x16c]
call fcn.0040455d
pop ecx
jmp 0x4053da
cmp dword [ebp + 0x34], 0
je 0x405776
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp + 0x70], eax
jmp 0x4055b5
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x70]
add eax, 0x50
mov dword [ebp + 0x70], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x114]
jne 0x4055de
mov dword [ebp - 0x68], 1
jmp 0x4055e2
and dword [ebp - 0x68], 0
movzx eax, byte [ebp - 0x68]
test eax, eax
jne 0x4055f3
mov dword [ebp - 0x48], 1
jmp 0x4055f7
and dword [ebp - 0x48], 0
movzx eax, byte [ebp - 0x48]
test eax, eax
je 0x405663
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
cmp dword [eax + 8], 0
je 0x40565e
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 8
je 0x40565e
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x174], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x174]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405597
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp + 0x70], eax
jmp 0x4056a1
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp + 0x70]
add eax, 0x50
mov dword [ebp + 0x70], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0xdc]
jne 0x4056ca
mov dword [ebp - 0x60], 1
jmp 0x4056ce
and dword [ebp - 0x60], 0
movzx eax, byte [ebp - 0x60]
test eax, eax
jne 0x4056df
mov dword [ebp - 0x24], 1
jmp 0x4056e3
and dword [ebp - 0x24], 0
movzx eax, byte [ebp - 0x24]
test eax, eax
je 0x405776
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0x10
je 0x405771
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
cmp dword [eax + 0x2c], 0
jne 0x405725
mov dword [ebp - 0x2c], 1
jmp 0x405729
and dword [ebp - 0x2c], 0
movzx eax, byte [ebp - 0x2c]
test eax, eax
jne 0x405771
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
add eax, 0x1c
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x2c]
cmp dword [eax + 0x14], 0x10
jb 0x405762
mov eax, dword [ebp - 0x1d4]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x405768
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x24], eax
push dword [ebp + 0x24]
call fcn.00403f91
pop ecx
jmp 0x405683
jmp 0x4059d6
mov dword [ebp - 4], 2
jmp 0x4059e8
jmp 0x4059f1
call fcn.0040b370
call fcn.0040c830
mov eax, dword [ebp + 4]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00403efe
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.00406b2f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.0040a7c0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret