Function at 0x405c60
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get common file path
Get file attributes
Get startup folder
Write file to startup folder

Disassembly:
push ebp
lea ebp, [esp - 0x45c]
sub esp, 0x45c
push 0xffffffffffffffff
push 0x41b420
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x422588]
xor eax, ebp
mov dword [ebp + 0x458], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebx + 0x10c]
sub eax, 0x10
push eax
call fcn.004018b0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40694b
cmp eax, ecx
jg 0x40694b
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x405ce6
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.004028f0
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
jl 0x406912
push 0x41cc74
push esi
call fcn.0040d17c
add esp, 8
test eax, eax
je 0x406912
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406912
test eax, eax
je 0x406912
add eax, 2
mov ecx, dword [esi - 0xc]
js 0x405d47
cmp eax, ecx
jg 0x405d47
push 0x41c4d0
lea eax, [esi + eax*2]
push eax
call fcn.0040d17c
add esp, 8
test eax, eax
je 0x405d47
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
jne 0x405d72
push 0
push 0x41cc70
push 0x41cc48
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406938
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405e0c
push edi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401fb0
mov ebx, dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405daf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405f41
lea eax, [edi + 1]
mov ecx, dword [esi - 0xc]
test eax, eax
jl 0x405dda
cmp eax, ecx
jg 0x405dda
push 0x41c4d0
lea edx, [esi + eax*2]
push edx
call fcn.0040d17c
add esp, 8
test eax, eax
je 0x405dda
sub eax, esi
sar eax, 1
mov edi, eax
jmp 0x405ddd
or edi, 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405df9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405d82
mov ebx, dword [ebp - 0x34]
mov ecx, 0x423928
mov edx, dword [0x423928]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push 0x3e8
push 0x3e8
lea ecx, [ebp - 0x24]
call fcn.00402840
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.004019b0
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.00401730
push 0x41c4d0
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00401fb0
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 0x41c448
lea ecx, [ebp - 0x2c]
call fcn.00404380
mov ecx, 0x423928
mov eax, dword [0x423928]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, 0x423928
mov eax, dword [0x423928]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00402ec0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405fa0
lea ecx, [ebp - 0x34]
call fcn.00401b00
push esi
push str.gb0R
lea eax, [ebp - 0x34]
push eax
call fcn.00403140
add esp, 0xc
push 0
push 0x41cc70
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x34]
call fcn.00401b20
lea ecx, [ebp - 0x18]
call fcn.00401b20
lea ecx, [ebp - 0x1c]
call fcn.00401b20
jmp 0x405f81
mov ecx, 0x423928
mov edx, dword [0x423928]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push eax
push 0x41cc14
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403140
add esp, 0xc
push 0
push 0x41cc70
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x2c]
call fcn.00401b20
lea ecx, [ebp - 0x24]
call fcn.00401b20
lea ecx, [ebp - 0x20]
call fcn.00401b20
xor eax, eax
jmp 0x4068bc
mov dword [ebp - 4], 0
push 0x41c64c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push 0x41cbf0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402ec0
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
call edi
test eax, eax
jne 0x406037
mov dword [ebp - 0x48], 0x41cbbc
push 0x41fa9c
lea edx, [ebp - 0x48]
push edx
call fcn.0040d132
push 0x41cb98
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push 0x41cb70
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402ec0
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call edi
test eax, eax
jne 0x4060c1
mov dword [ebp - 0x54], 0x41cb38
push 0x41fa9c
lea edx, [ebp - 0x54]
push edx
call fcn.0040d132
push 0x41cb24
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push 0x41cb10
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402ec0
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call edi
push 0x41caf4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push 0x41cad4
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00402ec0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call edi
push 0x41cab8
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push 0x41ca98
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00402ec0
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call edi
push 0x41ca7c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push str._template.xml
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402ec0
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406366
push ecx
mov ecx, esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00401f90
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00401f90
mov ecx, ebx
call fcn.00404c50
push 0x41ca4c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
push 0x41ca38
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00402ec0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push str.config.xml
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00402f40
add esp, 0xc
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4063b1
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push esi
cmp eax, 0xffffffff
je 0x40638c
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4063b1
mov dword [ebp - 0x5c], 0x41ca0c
push 0x41fa9c
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0040d132
push 0
push esi
mov eax, dword [ebp - 0x18]
push eax
call edi
test eax, eax
jne 0x4062ab
mov dword [ebp - 0x3c], 0x41c9e0
push 0x41fa9c
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0040d132
mov edx, dword [ebp - 0x18]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
call edi
test eax, eax
jne 0x4063b7
mov dword [ebp - 0x58], 0x41c9bc
push 0x41fa9c
lea eax, [ebp - 0x58]
push eax
call fcn.0040d132
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.res_
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x28]
call fcn.00401b20
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40640e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40640e
mov dword [ebp - 0x44], 0x41c9a0
push 0x41fa9c
lea eax, [ebp - 0x44]
push eax
call fcn.0040d132
push str._res.
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00402ec0
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x28]
call fcn.00401b20
lea ecx, [ebp - 0x38]
call fcn.00401b20
mov dword [ebp], 0
push 0x24c
push 0
lea edx, [ebp + 4]
push edx
call fcn.0040d450
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4065c8
mov ecx, 0x41c4dc
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4064ae
test dx, dx
je 0x4064aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4064ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x406488
xor eax, eax
jmp 0x4064b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4065ad
mov ecx, 0x41c4d4
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4064e9
test dx, dx
je 0x4064e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4064e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4064c3
xor eax, eax
jmp 0x4064ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4065ad
lea edx, [ebp + 0x2c]
push edx
push str._res_
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00402ec0
add esp, 0xc
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x38]
call fcn.00401b20
lea ecx, [ebp - 0x4c]
call fcn.00401b20
lea ecx, [ebp - 0x50]
call fcn.00401b20
push 0x41c978
lea ecx, [ebp - 0x28]
call fcn.004036b0
lea edx, [ebp + 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00402ec0
add esp, 0xc
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x40]
call fcn.00401b20
lea ecx, [ebp - 0x30]
call fcn.00401b20
lea ecx, [ebp - 0x28]
call fcn.00401b20
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call edi
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x406480
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
lea ecx, [ebp + 0x250]
push ecx
mov edx, dword [ebx + 4]
push edx
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call edi
cmp eax, 1
jne 0x406662
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403710
push 0x41c960
lea ecx, [ebp - 0x1c]
call fcn.00403750
push 0x41c64c
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x30]
call fcn.00401b20
push ecx
mov ecx, esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00401f90
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00401f90
mov ecx, ebx
call fcn.00402180
test eax, eax
jne 0x406662
push eax
push 0x41cc70
push 0x41c94c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 7
push 0x401
mov ecx, dword [ebx + 4]
push ecx
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push 0
push 2
lea edx, [ebp + 0x250]
push edx
mov eax, dword [ebx + 4]
push eax
call edi
cmp eax, 1
jne 0x4067ac
lea ecx, [ebp + 0x250]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403710
push 0x41c93c
lea ecx, [ebp - 0x1c]
call fcn.00403750
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4066c5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x41c64c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x30]
call fcn.00401b20
push ecx
mov ecx, esp
push 0x41c960
lea edx, [ebp - 0x1c]
push edx
push ecx
call fcn.00402f40
add esp, 8
mov ecx, esp
lea eax, [ebp - 0x18]
push eax
call fcn.00401f90
mov ecx, ebx
call fcn.00402180
push 0x41cb10
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x30]
call fcn.00401b20
push ecx
mov eax, esp
push 0x41cb10
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.00402f40
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00401f90
mov ecx, ebx
call fcn.00402180
push 0x41cad4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x30]
call fcn.00401b20
push ecx
mov edx, esp
push 0x41c920
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.00402f40
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00401f90
mov ecx, ebx
call fcn.00402180
push 0
push 3
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
push 0x41c64c
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403080
lea ecx, [ebp - 0x30]
call fcn.00401b20
push ecx
mov ecx, esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00401f90
mov ecx, ebx
call fcn.00403480
push 0
push 9
push 0x401
mov ecx, dword [ebx + 4]
push ecx
call esi
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402ec0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403080
lea ecx, [ebp - 0x30]
call fcn.00401b20
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00401f90
mov ecx, ebx
call fcn.00403260
cmp dword [ebx + 0x120], 1
jne 0x406869
push 0
push 8
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
lea edx, [ebx + 0x110]
push ecx
mov ecx, esp
push edx
call fcn.00401f90
mov ecx, ebx
call fcn.00402370
push 0
push 5
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
lea ecx, [ebx + 0x108]
lea edx, [ebp - 0x20]
push edx
call fcn.00403080
lea ecx, [ebp - 0x14]
call fcn.00401b20
lea ecx, [ebp - 0x18]
call fcn.00401b20
lea ecx, [ebp - 0x1c]
call fcn.00401b20
lea ecx, [ebp - 0x2c]
call fcn.00401b20
lea ecx, [ebp - 0x24]
call fcn.00401b20
lea ecx, [ebp - 0x20]
call fcn.00401b20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.0040d432
add ebp, 0x45c
mov esp, ebp
pop ebp
ret
push 0
push 0x41cc70
push 0x41cc48
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4068bc
push 0x80070057
call fcn.00401000
int3