Function at 0x480760
Capabilities:
Check if file exists
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b1a6
mov eax, dword fs:[0]
push eax
sub esp, 0x790
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x4807a1
mov eax, dword [ebp + 8]
push eax
call fcn.004b1d80
add esp, 4
test eax, eax
jne 0x4807a6
jmp 0x481001
cmp dword [ebp + 0xc], 0
je 0x4807ba
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4807bf
jmp 0x481001
mov edx, dword [ebp + 8]
push edx
call fcn.004b6c49
add esp, 4
mov dword [ebp - 0x220], 0
push str.STARTV31
mov eax, dword [ebp + 8]
push eax
call fcn.00408640
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x48081b
cmp dword [ebp + 0xc], 0
je 0x48081b
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48081b
push 0
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.004b0ac0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x206
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x540868
lea ecx, [ebp - 0x430]
call fcn.00401e30
mov dword [ebp - 4], 0
push str.DOEXAM
mov edx, dword [ebp + 8]
push edx
call fcn.00408640
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x480ad2
push str.DOEXAM
call fcn.004b1d80
add esp, 4
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
push eax
call fcn.004b1d80
add esp, 4
test eax, eax
jbe 0x480ad2
mov byte [ebp - 0x53c], 0
push 0x103
push 0
lea ecx, [ebp - 0x53b]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x26
mov edx, dword [ebp - 0x220]
push edx
call fcn.00481ab0
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x480919
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x53c]
push ecx
call fcn.004b1e10
add esp, 8
jmp 0x480960
mov edx, dword [ebp - 0x220]
add edx, 1
cmp dword [ebp - 0x434], edx
jbe 0x480960
mov eax, dword [ebp - 0x434]
sub eax, dword [ebp - 0x220]
cmp eax, 0x104
jge 0x480960
mov ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x53c]
push eax
call fcn.004b5160
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x53c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x42c]
push eax
call fcn.004b0eb7
add esp, 4
test eax, eax
jbe 0x480ad2
push str.EntClient
lea ecx, [ebp - 0x758]
push ecx
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x770], eax
mov edx, dword [ebp - 0x770]
mov dword [ebp - 0x774], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x774]
push eax
lea ecx, [ebp - 0x430]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x758]
call fcn.00401eb0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480a0b
push 0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.EntClientExamCmd.dat
lea ecx, [ebp - 0x75c]
push ecx
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x778], eax
mov edx, dword [ebp - 0x778]
mov dword [ebp - 0x77c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x77c]
push eax
lea ecx, [ebp - 0x430]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x75c]
call fcn.00401eb0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
push 0x208
lea ecx, [ebp - 0x21c]
push ecx
push 0x540868
push str.LastRecieve
push str.Exam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.004b55b5
add esp, 8
test eax, eax
je 0x480ad2
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x42c]
push ecx
push str.LastRecieve
push str.Exam
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.DOSD
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408640
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x480d61
push str.DOSD
call fcn.004b1d80
add esp, 4
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
push edx
call fcn.004b1d80
add esp, 4
test eax, eax
jbe 0x480d61
mov byte [ebp - 0x644], 0
push 0x103
push 0
lea eax, [ebp - 0x643]
push eax
call fcn.004b0ac0
add esp, 0xc
push 0x26
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00481ab0
add esp, 8
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x480b7b
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x644]
push eax
call fcn.004b1e10
add esp, 8
jmp 0x480bc3
mov ecx, dword [ebp - 0x220]
add ecx, 1
cmp dword [ebp - 0x648], ecx
jbe 0x480bc3
mov edx, dword [ebp - 0x648]
sub edx, dword [ebp - 0x220]
cmp edx, 0x104
jge 0x480bc3
mov eax, dword [ebp - 0x648]
sub eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x644]
push edx
call fcn.004b5160
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004b0ac0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x42c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x220]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004b0eb7
add esp, 4
test eax, eax
jbe 0x480d61
push str.EntClient
lea edx, [ebp - 0x760]
push edx
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x780], eax
mov eax, dword [ebp - 0x780]
mov dword [ebp - 0x784], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x784]
push ecx
lea ecx, [ebp - 0x430]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x760]
call fcn.00401eb0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480c9a
push 0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.EntClientExamCmd.dat
lea edx, [ebp - 0x764]
push edx
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x788], eax
mov eax, dword [ebp - 0x788]
mov dword [ebp - 0x78c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x78c]
push ecx
lea ecx, [ebp - 0x430]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x764]
call fcn.00401eb0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
push 0x208
lea edx, [ebp - 0x21c]
push edx
push 0x540868
push str.LastRecieve
push 0x542d44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004b55b5
add esp, 8
test eax, eax
je 0x480d61
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
lea edx, [ebp - 0x42c]
push edx
push str.LastRecieve
push 0x542d44
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push str.DOSDALL
mov edx, dword [ebp + 8]
push edx
call fcn.00408640
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x480fef
push str.DOSDALL
call fcn.004b1d80
add esp, 4
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
push eax
call fcn.004b1d80
add esp, 4
test eax, eax
jbe 0x480fef
mov byte [ebp - 0x754], 0
push 0x103
push 0
lea ecx, [ebp - 0x753]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x26
mov edx, dword [ebp - 0x220]
push edx
call fcn.00481ab0
add esp, 8
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
jne 0x480e0a
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x754]
push ecx
call fcn.004b1e10
add esp, 8
jmp 0x480e51
mov edx, dword [ebp - 0x220]
add edx, 1
cmp dword [ebp - 0x64c], edx
jbe 0x480e51
mov eax, dword [ebp - 0x64c]
sub eax, dword [ebp - 0x220]
cmp eax, 0x104
jge 0x480e51
mov ecx, dword [ebp - 0x64c]
sub ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x754]
push eax
call fcn.004b5160
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004b0ac0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x220]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x42c]
push edx
call fcn.004b0eb7
add esp, 4
test eax, eax
jbe 0x480fef
push str.EntClient
lea eax, [ebp - 0x768]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x790], eax
mov ecx, dword [ebp - 0x790]
mov dword [ebp - 0x794], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x794]
push edx
lea ecx, [ebp - 0x430]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x768]
call fcn.00401eb0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480f28
push 0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.EntClientExamCmd.dat
lea eax, [ebp - 0x76c]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0x798], eax
mov ecx, dword [ebp - 0x798]
mov dword [ebp - 0x79c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x79c]
push edx
lea ecx, [ebp - 0x430]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x76c]
call fcn.00401eb0
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
push 0x208
lea eax, [ebp - 0x21c]
push eax
push 0x540868
push str.LastRecieve
push str.SDALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.004b55b5
add esp, 8
test eax, eax
je 0x480fef
lea ecx, [ebp - 0x430]
call fcn.0043e290
push eax
lea eax, [ebp - 0x42c]
push eax
push str.LastRecieve
push str.SDALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 3
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00401eb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret