Function at 0x417300
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x521408
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
push 0xc8
push eax
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esi + 0x154]
call fcn.00435240
push str.DBBackup
lea ebp, [esi + 0x614]
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.0040bf20
mov eax, dword [eax]
add esp, 0xc
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x41737d
sub eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.004d37ab
add esp, 4
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402700
cmp eax, 1
jne 0x417397
mov edx, dword [esp + 0x1c]
mov dword [edx - 4], ebx
mov dword [esp + 0x38], ebx
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00402700
cmp eax, 1
jne 0x4173b5
mov eax, dword [esp + 0x14]
mov dword [eax - 4], ebx
mov byte [esp + 0x38], 1
mov ecx, dword [esi + 0x5ec]
mov edx, dword [esi + 0x5bc]
mov eax, dword [esi + 0x5c0]
push ecx
mov ecx, dword [esi + 0x5b8]
push edx
mov edx, dword [esi + 0x5ac]
push eax
mov eax, dword [ebp]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str._sDBExam__s__s__s__s_Seat_d.db
push ecx
call fcn.00402230
mov edx, dword [esi + 0x5ec]
mov eax, dword [esi + 0x5bc]
mov ecx, dword [esi + 0x5c0]
push edx
mov edx, dword [esi + 0x5b8]
push eax
mov eax, dword [esi + 0x5ac]
push ecx
mov ecx, dword [ebp]
push edx
push eax
push ecx
lea edx, [esp + 0x4c]
push str._sDBBackupExam__s__s__s__s_Seat_d.backup
push edx
call fcn.00402230
lea eax, [esp + 0x54]
add esp, 0x40
push eax
call fcn.0049d8c0
add esp, 4
test eax, eax
je 0x417496
mov edi, 1
nop
mov ecx, dword [esi + 0x5ec]
mov edx, dword [esi + 0x5bc]
mov eax, dword [esi + 0x5c0]
push edi
push ecx
mov ecx, dword [esi + 0x5b8]
push edx
mov edx, dword [esi + 0x5ac]
push eax
mov eax, dword [ebp]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._sDBBackupExam__s__s__s__s_Seat_d__d_.backup
push ecx
call fcn.00402230
lea edx, [esp + 0x38]
add esp, 0x24
push edx
call fcn.0049d8c0
add esp, 4
test eax, eax
je 0x417496
add edi, 1
cmp edi, 0x270f
jl 0x417440
xor ecx, ecx
mov eax, 0x11
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x20], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add eax, 8
mov dword [esp + 0x24], eax
mov dword [eax - 8], 0xd
mov eax, dword [esp + 0x24]
add esp, 4
push str.sptvmffkdl__
mov word [eax + 0x18], bx
mov ecx, dword [esp + 0x24]
push 0xd
push ecx
call fcn.004f2e08
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [edx - 4], 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x44], 2
call fcn.0049e750
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x417526
sub eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.004d37ab
add esp, 4
lea eax, [esp + 0x1c]
push eax
call fcn.0049e330
add esp, 4
call fcn.0042fd50
cmp dword [eax], 1
jl 0x417587
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ee40
mov edi, eax
mov byte [esp + 0x38], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
push eax
push edx
push str.CMainHtmlDlg::RecvExamEnd.._sDbName__s___err__d__n
push ebx
call fcn.0042ff90
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, ebx
je 0x417587
sub eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.004d37ab
add esp, 4
mov edi, dword [esi + 0x59c]
call fcn.00423990
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x24]
push str._sExamDataMediaFiles
push ecx
call fcn.0040f1d0
add esp, 0xc
push eax
mov byte [esp + 0x3c], 4
call fcn.0049dd90
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x4175d3
sub eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.004d37ab
add esp, 4
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x18], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [esp + 0x18], eax
mov edi, 1
mov dword [eax - 8], edi
mov eax, dword [esp + 0x18]
mov word [eax], bx
je 0x417614
mov ecx, dword [esp + 0x18]
mov dword [ecx - 4], ebx
mov byte [esp + 0x38], 5
mov edx, dword [esi + 0x5a8]
mov eax, dword [ebp]
push edx
push eax
lea ecx, [esp + 0x20]
push str._sExamDataPaperData__s.dat
push ecx
call fcn.00402230
lea edx, [esp + 0x28]
push edx
call fcn.0049e330
mov eax, dword [esi + 0x5a4]
add esp, 0x14
cmp eax, ebx
je 0x417667
cmp dword [eax - 8], edi
jae 0x417696
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5a4], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5a4], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5a4], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5a4]
mov word [eax], bx
mov eax, dword [esi + 0x5a4]
cmp eax, ebx
je 0x4176ac
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5a8]
cmp eax, ebx
je 0x4176d3
cmp dword [eax - 8], edi
jae 0x417702
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5a8], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5a8], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5a8], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5a8]
mov word [eax], bx
mov eax, dword [esi + 0x5a8]
cmp eax, ebx
je 0x417718
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5ac]
cmp eax, ebx
je 0x41773f
cmp dword [eax - 8], edi
jae 0x41776e
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5ac], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5ac], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5ac], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5ac]
mov word [eax], bx
mov eax, dword [esi + 0x5ac]
cmp eax, ebx
je 0x417784
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5b0]
cmp eax, ebx
je 0x4177ab
cmp dword [eax - 8], edi
jae 0x4177da
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5b0], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5b0], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5b0], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5b0]
mov word [eax], bx
mov eax, dword [esi + 0x5b0]
cmp eax, ebx
je 0x4177f0
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5b4]
cmp eax, ebx
je 0x417817
cmp dword [eax - 8], edi
jae 0x417846
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5b4], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5b4], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5b4], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5b4]
mov word [eax], bx
mov eax, dword [esi + 0x5b4]
cmp eax, ebx
je 0x41785c
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5b8]
cmp eax, ebx
je 0x417883
cmp dword [eax - 8], edi
jae 0x4178b2
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5b8], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5b8], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5b8], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5b8]
mov word [eax], bx
mov eax, dword [esi + 0x5b8]
cmp eax, ebx
je 0x4178c8
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5bc]
cmp eax, ebx
je 0x4178ef
cmp dword [eax - 8], edi
jae 0x41791e
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5bc], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5bc], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov edi, 1
mov dword [esi + 0x5bc], eax
mov dword [eax - 8], edi
mov eax, dword [esi + 0x5bc]
mov word [eax], bx
mov eax, dword [esi + 0x5bc]
cmp eax, ebx
je 0x417934
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5c0]
cmp eax, ebx
je 0x41795b
cmp dword [eax - 8], edi
jae 0x417989
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5c0], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5c0], ebx
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [esi + 0x5c0], eax
mov dword [eax - 8], 1
mov eax, dword [esi + 0x5c0]
mov word [eax], bx
mov eax, dword [esi + 0x5c0]
cmp eax, ebx
je 0x41799f
mov dword [eax - 4], ebx
mov eax, dword [esi + 0x5c4]
test eax, eax
lea ebx, [esi + 0x5c4]
je 0x4179cd
mov ecx, 1
cmp dword [eax - 8], ecx
jae 0x4179f8
add eax, 0xfffffff8
push eax
mov dword [ebx], eax
call fcn.004d37ab
add esp, 4
mov dword [ebx], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov ecx, 1
mov dword [ebx], eax
mov dword [eax - 8], ecx
mov eax, dword [ebx]
mov word [eax], 0
mov eax, dword [ebx]
test eax, eax
je 0x417a0c
mov dword [eax - 4], 0
mov eax, dword [esi + 0x5c8]
test eax, eax
lea ebp, [esi + 0x5c8]
je 0x417a37
cmp dword [eax - 8], ecx
jae 0x417a62
add eax, 0xfffffff8
push eax
mov dword [ebp], eax
call fcn.004d37ab
add esp, 4
mov dword [ebp], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [ebp], eax
mov dword [eax - 8], 1
mov eax, dword [ebp]
mov word [eax], 0
mov eax, dword [ebp]
test eax, eax
je 0x417a78
mov dword [eax - 4], 0
mov eax, dword [esi + 0x5cc]
test eax, eax
lea edi, [esi + 0x5cc]
je 0x417aa2
cmp dword [eax - 8], 1
jae 0x417acc
add eax, 0xfffffff8
push eax
mov dword [edi], eax
call fcn.004d37ab
add esp, 4
mov dword [edi], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [edi], eax
mov dword [eax - 8], 1
mov eax, dword [edi]
mov word [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x417ae0
mov dword [eax - 4], 0
mov eax, dword [esi + 0x5d0]
test eax, eax
je 0x417b0c
cmp dword [eax - 8], 1
jae 0x417b3a
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5d0], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5d0], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [esi + 0x5d0], eax
mov dword [eax - 8], 1
mov eax, dword [esi + 0x5d0]
mov word [eax], 0
mov eax, dword [esi + 0x5d0]
test eax, eax
je 0x417b56
mov dword [eax - 4], 0
mov eax, dword [esi + 0x5d4]
test eax, eax
je 0x417b82
cmp dword [eax - 8], 1
jae 0x417bb0
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5d4], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5d4], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [esi + 0x5d4], eax
mov dword [eax - 8], 1
mov eax, dword [esi + 0x5d4]
mov word [eax], 0
mov eax, dword [esi + 0x5d4]
test eax, eax
je 0x417bcc
mov dword [eax - 4], 0
mov eax, dword [esi + 0x5d8]
test eax, eax
je 0x417bf8
cmp dword [eax - 8], 1
jae 0x417c26
add eax, 0xfffffff8
push eax
mov dword [esi + 0x5d8], eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x5d8], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [esi + 0x5d8], eax
mov dword [eax - 8], 1
mov eax, dword [esi + 0x5d8]
mov word [eax], 0
mov eax, dword [esi + 0x5d8]
test eax, eax
je 0x417c42
mov dword [eax - 4], 0
lea ecx, [esi + 0xf18]
call fcn.00425530
push 0
push edi
push ebp
push ebx
lea eax, [esi + 0x5c0]
push eax
lea eax, [esi + 0x5bc]
push eax
lea eax, [esi + 0x5b8]
push eax
lea eax, [esi + 0x5b4]
push eax
lea eax, [esi + 0x5b0]
push eax
lea eax, [esi + 0x5ac]
push eax
lea eax, [esi + 0x5a8]
push eax
lea ecx, [esi + 0x130]
lea eax, [esi + 0x5a4]
call fcn.00402fd0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
mov edi, eax
add edi, 8
push 0x543e10
lea ebp, [edi - 8]
push 1
mov dword [ebp], 1
push edi
mov dword [esp + 0x34], edi
mov word [edi], 0
call fcn.004f2e08
add esp, 0xc
mov dword [edi - 4], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
mov byte [esp + 0x38], 6
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
mov edi, eax
add edi, 8
push 0x543e10
lea ebx, [edi - 8]
push 1
mov dword [ebx], 1
push edi
mov dword [esp + 0x30], edi
mov word [edi], 0
call fcn.004f2e08
add esp, 0xc
mov dword [edi - 4], 0
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
mov byte [esp + 0x38], 7
neg ecx
or ecx, eax
push ecx
call fcn.004d37a6
add esp, 4
mov edi, eax
add edi, 8
push 0x543e10
lea eax, [edi - 8]
push 1
mov dword [eax], 1
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], eax
mov word [edi], 0
call fcn.004f2e08
add esp, 0xc
mov dword [edi - 4], 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x498]
mov byte [esp + 0x3c], 8
call fcn.00401fe0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x49c]
call fcn.00401fe0
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x4a0]
call fcn.00401fe0
mov eax, dword [esp + 0x2c]
push eax
call fcn.004d37ab
add esp, 4
push ebx
call fcn.004d37ab
add esp, 4
push ebp
mov byte [esp + 0x3c], 5
call fcn.004d37ab
add esp, 4
push esi
mov ecx, str.if_typeof_EndExam__function__EndExam__
call fcn.00415130
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417e0b
sub eax, 8
push eax
mov dword [esp + 0x1c], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417e2b
sub eax, 8
push eax
mov dword [esp + 0x18], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x417e43
sub eax, 8
push eax
mov dword [esp + 0x20], eax
call fcn.004d37ab
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret