Function at 0x40e180
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x437cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd20
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx]
push edi
or ecx, 0xffffffff
lea edx, [esp + 0x930]
mov edi, dword [eax + 0x35ec]
xor eax, eax
add edi, 8
push 0x1000
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041a8df
add esp, 4
lea ecx, [esp + 0x930]
lea edx, [esp + 0x530]
mov ebp, eax
push ecx
push str._sdataitemse.txt
push edx
call fcn.0041a207
add esp, 0xc
lea eax, [esp + 0x930]
lea ecx, [esp + 0x130]
push eax
push str._sdata_temp1.dat
push ecx
call fcn.0041a207
add esp, 0xc
lea edx, [esp + 0x130]
lea eax, [esp + 0x530]
mov ecx, ebx
push edx
push str.5B7_8
push eax
call fcn.0040e050
lea ecx, [esp + 0x130]
push 0x446c04
push ecx
call fcn.0041ac2e
mov edi, eax
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40e25e
or eax, 0xffffffff
jmp 0x40f0ba
push edi
push 0x1000
push ebp
call fcn.0041ba53
push edi
push 0x1000
push ebp
mov dword [ebx + 0xc], esi
call fcn.0041ba53
add esp, 0x18
test eax, eax
je 0x40e29a
mov eax, dword [ebx + 0xc]
push edi
inc eax
push 0x1000
push ebp
mov dword [ebx + 0xc], eax
call fcn.0041ba53
add esp, 0xc
test eax, eax
jne 0x40e280
push edi
call fcn.0041aa69
mov eax, dword [ebx + 0xc]
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
shl eax, 3
push eax
call fcn.0041a8df
mov edi, eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], edi
push 0x446c04
lea ecx, [eax + eax*8]
lea ecx, [eax + ecx*2]
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push eax
call fcn.0041ac2e
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x40e2f8
or eax, 0xffffffff
jmp 0x40f0ba
push eax
push 0x1000
push ebp
call fcn.0041ba53
mov eax, dword [ebx + 0xc]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], esi
jle 0x40e5bf
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x1000
push ebp
call fcn.0041ba53
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
xor ebx, ebx
mov byte [ecx + ebp + 1], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov byte [ecx + ebp + 2], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov byte [ecx + ebp + 3], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp + 4], al
mov al, byte [ebp]
test al, al
je 0x40e5bf
cmp al, 9
je 0x40e385
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e378
test ebx, ebx
je 0x40e5bf
mov byte [ebx + ebp], 0
push ebp
inc ebx
call fcn.0041a75d
mov edx, dword [esp + 0x18]
lea edi, [ebx + ebp]
add esp, 4
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x10]
mov dword [ecx + edx], eax
mov al, byte [edi]
test al, al
mov ecx, ebx
je 0x40e3c5
cmp al, 9
je 0x40e3c1
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e3b4
cmp ebx, ecx
jne 0x40e3dc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ebx
mov edi, 0x446bf8
mov ecx, dword [eax + 8]
lea edx, [ecx + edx + 0x18]
jmp 0x40e3f0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov byte [ebx + ebp], 0
inc ebx
mov edx, dword [ecx + 8]
lea edx, [edx + eax + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
je 0x40e42a
cmp al, 9
je 0x40e426
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e419
cmp ebx, edx
jne 0x40e440
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ebx
mov edx, dword [ecx + 8]
mov dword [edx + eax + 4], 0
jmp 0x40e45d
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx + 4], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40e47a
cmp al, 9
je 0x40e476
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e469
cmp ebx, edx
jne 0x40e490
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc ebx
mov eax, dword [edx + 8]
mov dword [eax + ecx + 0x10], 0
jmp 0x40e4ad
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x10]
mov dword [ecx + edx + 0x10], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40e4ca
cmp al, 9
je 0x40e4c6
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e4b9
cmp ebx, edx
jne 0x40e4e0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ebx
mov ecx, dword [eax + 8]
mov dword [ecx + edx + 8], 0
jmp 0x40e4fd
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx + 8], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40e51a
cmp al, 9
je 0x40e516
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e509
cmp ebx, edx
jne 0x40e530
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc ebx
mov eax, dword [edx + 8]
mov dword [eax + ecx + 0xc], 0
jmp 0x40e54d
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x10]
mov dword [ecx + edx + 0xc], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40e56a
cmp al, 9
je 0x40e566
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e559
cmp ebx, edx
jne 0x40e57f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [ecx + edx + 0x14], 0
jmp 0x40e59b
push ecx
mov byte [ebx + ebp], 0
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx + 0x14], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add edx, 0x98
inc eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp eax, dword [edx + 0xc]
jl 0x40e31e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041aa69
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x930]
lea eax, [esp + 0x530]
inc ecx
push edx
push str._sdatacharacterse.txt
push eax
mov dword [esi + 0xc], ecx
call fcn.0041a207
add esp, 0xc
lea ecx, [esp + 0x130]
lea edx, [esp + 0x530]
push ecx
push str.5B7_8
push edx
mov ecx, esi
call fcn.0040e050
lea eax, [esp + 0x130]
push 0x446c04
push eax
call fcn.0041ac2e
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
jne 0x40e636
or eax, 0xffffffff
jmp 0x40f0ba
push edi
push 0x1000
push ebp
call fcn.0041ba53
push edi
push 0x1000
push ebp
mov dword [esi + 0x14], ebx
call fcn.0041ba53
add esp, 0x18
test eax, eax
je 0x40e672
mov eax, dword [esi + 0x14]
push edi
inc eax
push 0x1000
push ebp
mov dword [esi + 0x14], eax
call fcn.0041ba53
add esp, 0xc
test eax, eax
jne 0x40e658
push edi
call fcn.0041aa69
mov eax, dword [esi + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 3
push ecx
call fcn.0041a8df
mov edi, eax
mov eax, dword [esi + 0x14]
mov ecx, eax
mov dword [esi + 0x10], edi
shl ecx, 4
add ecx, eax
xor eax, eax
shl ecx, 3
mov edx, ecx
push 0x446c04
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push eax
call fcn.0041ac2e
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x40e6d2
or eax, 0xffffffff
jmp 0x40f0ba
push eax
push 0x1000
push ebp
call fcn.0041ba53
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], ebx
jle 0x40e829
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x1c]
push ecx
push 0x1000
push ebp
call fcn.0041ba53
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebx, ebx
mov byte [ecx + ebp + 1], al
mov al, byte [ebp]
test al, al
je 0x40e829
cmp al, 9
je 0x40e731
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e724
test ebx, ebx
je 0x40e829
mov byte [ebx + ebp], 0
push ebp
inc ebx
call fcn.0041a75d
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
lea edi, [ebx + ebp]
add esp, 4
mov dword [edx + ecx], eax
mov ecx, ebx
mov al, byte [edi]
test al, al
je 0x40e76d
cmp al, 9
je 0x40e769
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e75c
cmp ebx, ecx
jne 0x40e784
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc ebx
mov edi, str.NONAME
mov eax, dword [edx + 0x10]
lea edx, [eax + ecx + 8]
jmp 0x40e798
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov byte [ebx + ebp], 0
inc ebx
mov edx, dword [ecx + 0x10]
lea edx, [edx + eax + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
je 0x40e7d2
cmp al, 9
je 0x40e7ce
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40e7c1
cmp ebx, edx
jne 0x40e7e7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
mov dword [edx + eax + 4], 0
jmp 0x40e803
push ecx
mov byte [ebx + ebp], 0
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add edx, 0x88
inc eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov esi, edx
cmp eax, dword [edx + 0x14]
jl 0x40e6f4
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041aa69
add esp, 4
lea ecx, [esp + 0x930]
lea edx, [esp + 0x530]
push ecx
push str._sdata_skillse.txt
push edx
call fcn.0041a207
add esp, 0xc
lea eax, [esp + 0x130]
lea ecx, [esp + 0x530]
push eax
push str.5B7_8
push ecx
mov ecx, esi
call fcn.0040e050
lea ecx, [esp + 0x20]
call fcn.00409760
lea edx, [esp + 0x130]
lea ecx, [esp + 0x20]
push edx
mov dword [esp + 0xd3c], 0
call fcn.004097e0
mov dword [esi + 0x16908], 0x29a
mov edi, 1
lea ebx, [esi + 0x98]
push edi
lea eax, [esp + 0x534]
push 0x44521c
push eax
call fcn.0041a207
add esp, 0xc
lea ecx, [ebx - 0x80]
lea edx, [esp + 0x530]
push 0x80
push ecx
push 0x446bc0
push edx
lea ecx, [esp + 0x30]
call fcn.00409a80
mov dword [ebx], edi
mov ecx, dword [esi + 0x16908]
inc edi
add ebx, 0x84
lea eax, [edi - 1]
cmp eax, ecx
jl 0x40e8a9
lea ecx, [esp + 0x20]
call fcn.004099e0
lea ecx, [esp + 0x930]
lea edx, [esp + 0x530]
push ecx
push str._sdatalevelexpe.txt
push edx
call fcn.0041a207
add esp, 0xc
lea eax, [esp + 0x130]
lea ecx, [esp + 0x530]
push eax
push str.5B7_8
push ecx
mov ecx, esi
call fcn.0040e050
lea edx, [esp + 0x130]
push 0x446c04
push edx
call fcn.0041ac2e
mov edi, eax
add esp, 8
test edi, edi
jne 0x40e96d
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
or eax, 0xffffffff
jmp 0x40f0ba
push edi
push 0x1000
push ebp
mov dword [esi + 0x1690c], 0
call fcn.0041ba53
add esp, 0xc
test eax, eax
je 0x40e9aa
mov edx, dword [esi + 0x1690c]
push edi
inc edx
push 0x1000
push ebp
mov dword [esi + 0x1690c], edx
call fcn.0041ba53
add esp, 0xc
test eax, eax
jne 0x40e98a
push edi
call fcn.0041aa69
mov eax, dword [esi + 0x1690c]
shl eax, 2
push eax
call fcn.0041a8df
mov ecx, dword [esi + 0x1690c]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x16910], edi
push 0x446c04
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push eax
call fcn.0041ac2e
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x40ea17
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
or eax, 0xffffffff
jmp 0x40f0ba
mov eax, dword [esi + 0x1690c]
xor edi, edi
test eax, eax
jle 0x40ea4c
push ebx
push 0x1000
push ebp
call fcn.0041ba53
push ebp
call fcn.0041a75d
mov ecx, dword [esi + 0x16910]
add esp, 0x10
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x1690c]
inc edi
cmp edi, eax
jl 0x40ea23
push ebx
call fcn.0041aa69
add esp, 4
lea edx, [esp + 0x930]
lea eax, [esp + 0x530]
push edx
push str._sdata_skills2e.txt
push eax
call fcn.0041a207
add esp, 0xc
lea ecx, [esp + 0x130]
lea edx, [esp + 0x530]
push ecx
push str.5B7_8
push edx
mov ecx, esi
call fcn.0040e050
lea eax, [esp + 0x130]
push 0x446c04
push eax
call fcn.0041ac2e
mov edi, eax
add esp, 8
test edi, edi
jne 0x40eac5
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
or eax, 0xffffffff
jmp 0x40f0ba
push edi
xor ebx, ebx
push 0x1000
push ebp
mov dword [esi + 0x16914], ebx
call fcn.0041ba53
push edi
push 0x1000
push ebp
call fcn.0041ba53
add esp, 0x18
test eax, eax
je 0x40eb0c
mov eax, dword [esi + 0x16914]
push edi
inc eax
push 0x1000
push ebp
mov dword [esi + 0x16914], eax
call fcn.0041ba53
add esp, 0xc
test eax, eax
jne 0x40eaec
push edi
call fcn.0041aa69
mov eax, dword [esi + 0x16914]
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*4]
shl edx, 2
push edx
call fcn.0041a8df
mov edi, eax
mov eax, dword [esi + 0x16914]
mov dword [esi + 0x16918], edi
push 0x446c04
lea ecx, [eax + eax*8]
lea ecx, [eax + ecx*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push eax
call fcn.0041ac2e
mov edi, eax
add esp, 0x10
cmp edi, ebx
mov dword [esp + 0x1c], edi
jne 0x40eb89
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
or eax, 0xffffffff
jmp 0x40f0ba
push edi
push 0x1000
push ebp
call fcn.0041ba53
mov eax, dword [esi + 0x16914]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], ebx
jle 0x40ee41
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x1000
push ebp
call fcn.0041ba53
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebx, ebx
mov byte [ecx + ebp + 1], al
mov al, byte [ebp]
test al, al
je 0x40ebef
cmp al, 9
je 0x40ebeb
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40ebde
test ebx, ebx
jne 0x40ec26
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x16918]
lea edx, [ecx + eax]
or ecx, 0xffffffff
xor eax, eax
lea edi, [edx - 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
jmp 0x40ec5a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [ebx + ebp], 0
mov edi, ebp
mov ecx, dword [eax + 0x16918]
xor eax, eax
add edx, ecx
or ecx, 0xffffffff
inc ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40ec77
cmp al, 9
je 0x40ec73
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40ec66
cmp ebx, edx
jne 0x40ec91
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ebx
xor esi, esi
mov edx, dword [ecx + 0x16918]
mov dword [eax + edx + 0x80], esi
jmp 0x40ecb6
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
xor esi, esi
mov edx, dword [ecx + 0x16918]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edx + 0x80], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40ecd3
cmp al, 9
je 0x40eccf
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40ecc2
cmp ebx, edx
jne 0x40eceb
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc ebx
mov eax, dword [edx + 0x16918]
mov dword [ecx + eax + 0x84], esi
jmp 0x40ed0e
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edx + 0x16918]
mov edx, dword [esp + 0x10]
mov dword [edx + ecx + 0x84], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40ed2b
cmp al, 9
je 0x40ed27
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40ed1a
cmp ebx, edx
jne 0x40ed43
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ebx
mov ecx, dword [eax + 0x16918]
mov dword [edx + ecx + 0x88], esi
jmp 0x40ed66
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 0x16918]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edx + 0x88], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40ed83
cmp al, 9
je 0x40ed7f
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40ed72
cmp ebx, edx
jne 0x40ed9b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc ebx
mov eax, dword [edx + 0x16918]
mov dword [ecx + eax + 0x8c], esi
jmp 0x40edbe
mov byte [ebx + ebp], 0
push ecx
inc ebx
call fcn.0041a75d
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edx + 0x16918]
mov edx, dword [esp + 0x10]
mov dword [edx + ecx + 0x8c], eax
mov al, byte [ebx + ebp]
lea ecx, [ebx + ebp]
test al, al
mov edx, ebx
je 0x40eddb
cmp al, 9
je 0x40edd7
mov al, byte [ebx + ebp + 1]
inc ebx
test al, al
jne 0x40edca
cmp ebx, edx
jne 0x40edf2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x16918]
mov dword [edx + ecx + 0x90], esi
jmp 0x40ee14
push ecx
mov byte [ebx + ebp], 0
call fcn.0041a75d
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 0x16918]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edx + 0x90], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add edx, 0x94
inc eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp eax, dword [edx + 0x16914]
jl 0x40ebb2
mov edi, dword [esp + 0x1c]
mov esi, edx
push edi
call fcn.0041aa69
add esp, 4
lea eax, [esp + 0x930]
lea ecx, [esp + 0x530]
push eax
push str._sdataconfige.txt
push ecx
call fcn.0041a207
add esp, 0xc
lea edx, [esp + 0x130]
lea eax, [esp + 0x530]
mov ecx, esi
push edx
push str.5B7_8
push eax
call fcn.0040e050
lea ecx, [esp + 0x130]
push 0x446c04
push ecx
call fcn.0041ac2e
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
jne 0x40eebc
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
or eax, 0xffffffff
jmp 0x40f0ba
push edi
push 0x1000
push ebp
mov dword [esi + 0x16920], ebx
call fcn.0041ba53
push edi
push 0x1000
push ebp
call fcn.0041ba53
add esp, 0x18
test eax, eax
je 0x40ef01
mov eax, dword [esi + 0x16920]
push edi
inc eax
push 0x1000
push ebp
mov dword [esi + 0x16920], eax
call fcn.0041ba53
add esp, 0xc
test eax, eax
jne 0x40eee1
push edi
call fcn.0041aa69
mov eax, dword [esi + 0x16920]
mov edx, eax
shl edx, 5
add edx, eax
shl edx, 2
push edx
call fcn.0041a8df
mov edi, eax
mov eax, dword [esi + 0x16920]
mov ecx, eax
mov dword [esi + 0x1691c], edi
shl ecx, 5
add ecx, eax
xor eax, eax
shl ecx, 2
mov edx, ecx
push 0x446c04
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push eax
call fcn.0041ac2e
mov edi, eax
add esp, 0x10
cmp edi, ebx
mov dword [esp + 0x1c], edi
jne 0x40ef80
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
or eax, 0xffffffff
jmp 0x40f0ba
push edi
push 0x1000
push ebp
call fcn.0041ba53
mov eax, dword [esi + 0x16920]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], ebx
jle 0x40f087
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
push ecx
push 0x1000
push ebp
call fcn.0041ba53
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
mov byte [ecx + ebp + 1], al
mov al, byte [ebp]
test al, al
je 0x40efe0
cmp al, 9
je 0x40efdc
mov al, byte [edi + ebp + 1]
inc edi
test al, al
jne 0x40efcf
test edi, edi
jne 0x40eff0
mov edx, dword [esi + 0x1691c]
inc edi
mov dword [ebx + edx], 0
jmp 0x40f007
mov byte [edi + ebp], 0
push ebp
inc edi
call fcn.0041a75d
mov ecx, dword [esi + 0x1691c]
add esp, 4
mov dword [ebx + ecx], eax
mov al, byte [edi + ebp]
lea ecx, [edi + ebp]
test al, al
mov edx, edi
je 0x40f024
cmp al, 9
je 0x40f020
mov al, byte [edi + ebp + 1]
inc edi
test al, al
jne 0x40f013
cmp edi, edx
jne 0x40f031
mov edx, dword [esi + 0x1691c]
mov byte [ebx + edx + 4], 0
jmp 0x40f066
mov eax, dword [esp + 0x14]
mov byte [edi + ebp], 0
mov edi, ecx
or ecx, 0xffffffff
mov edx, dword [eax + 0x1691c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + edx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x16920]
inc eax
add ebx, 0x84
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40efa3
mov edi, dword [esp + 0x1c]
push edi
call fcn.0041aa69
push ebp
call fcn.0041aed7
add esp, 8
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004097d0
xor eax, eax
mov ecx, dword [esp + 0xd30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd2c
ret