Function at 0x46ef00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x56c260
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x80], 1
call edx
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
mov dword [ebp - 0x74], eax
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
lea ecx, [ebp - 0x65]
mov dword [ebp - 0x78], eax
call fcn.0044e510
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403b50
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x65]
call fcn.0044fe80
push eax
lea ecx, [ebp - 0x8c]
call fcn.00423fc0
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46efed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
mov esi, dword [ebp - 0x8c]
push esi
lea ecx, [ebp - 0x88]
add eax, 0x10
push str._sgamever.ini
push ecx
mov dword [ebp - 0x88], eax
call fcn.00428a30
add esp, 0xc
push 0x556338
push 0x53d38c
lea ecx, [ebp - 0x88]
call fcn.00423850
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
push str.loader.dat
push esi
lea ecx, [ebp - 0x90]
add eax, 0x10
push str._sConfig_s
push ecx
mov dword [ebp - 0x90], eax
call fcn.00428a30
add esp, 0x10
push 0x556338
push 0x53d38c
lea ecx, [ebp - 0x90]
call fcn.00423850
push ecx
add esi, 0xfffffff0
mov ebx, esp
push esi
mov dword [ebp - 0x84], esi
call fcn.00403b50
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0xb8], eax
call fcn.00403b50
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.0046e990
mov edx, dword [ebp + 8]
push 1
push 0x40
push 1
push edx
lea ecx, [ebp - 0x168]
call fcn.0046ca80
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jmp 0x46f0f0
mov eax, dword [ebp - 0x168]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x168]
mov eax, dword [eax + 0x30]
mov edi, dword [eax]
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x6c], edi
call fcn.0047b6d1
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x46f121
inc eax
mov dword [edi + 4], eax
lea ecx, [ebp - 0xa0]
call fcn.0047b6f9
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0040a1f0
add esp, 4
push 0
lea ecx, [ebp - 0x98]
mov ebx, eax
call fcn.0047b6d1
mov eax, dword [edi + 4]
test eax, eax
je 0x46f157
cmp eax, 0xffffffff
jae 0x46f157
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x98]
not esi
call fcn.0047b6f9
and esi, edi
je 0x46f179
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
push 0xa
mov ecx, ebx
call eax
mov byte [ebp - 0x9c], al
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.0041d5e0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x46f923
cmp dword [ebp - 0x50], 0x10
jb 0x46f22b
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x46f230
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x46f230
mov edi, dword [ebp - 0x7c]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x46f208
push esi
lea ecx, [ebp - 0x7c]
call fcn.00403d60
mov edi, dword [ebp - 0x7c]
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [edi - 8]
jg 0x46fc39
xor ecx, ecx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], cx
jmp 0x46f285
lea ebx, [ebp - 0x64]
jmp 0x46f1d0
mov edi, dword [ebp - 0x7c]
cmp dword [edi - 0xc], 0
mov esi, dword [edi - 0x10]
lea eax, [edi - 0x10]
je 0x46f285
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x46f260
cmp dword [edi - 8], 0
jl 0x46fc39
xor edx, edx
mov dword [edi - 0xc], 0
mov word [edi], dx
jmp 0x46f285
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x7c], edi
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
push 0
push ecx
mov ecx, 0x56c260
mov esi, esp
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x53f074
shr eax, 0x10
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x46f2cf
mov ecx, 0x53f074
movzx ebx, cx
push eax
push ebx
call fcn.0041e320
add esp, 8
test eax, eax
je 0x46f2dd
push ebx
push eax
mov ecx, esi
call fcn.00423560
jmp 0x46f2dd
push 1
push 0x53f074
mov ecx, esi
call fcn.00403ee0
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x46f307
cmp eax, dword [esi]
jne 0x46f307
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46f342
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x46fc43
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004fe509
add esp, 0x10
lea edx, [ebp - 0xa4]
add edi, 0x10
push edx
lea ecx, [ebp - 0x65]
mov dword [ebx], edi
call fcn.00451090
mov ecx, dword [eax]
mov edi, dword [ebp - 0x70]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x46f3ae
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x46f3a1
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x46f3a1
push eax
call fcn.00403b50
mov dword [ebp - 0x70], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46f396
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x70]
add ecx, 0x10
mov dword [ebp - 0x70], ecx
jmp 0x46f3ae
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00403ee0
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f3d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
push 1
push ecx
mov ecx, 0x56c260
mov edi, esp
call eax
add eax, 0x10
cmp dword [ebp - 0x6c], 0
mov dword [edi], eax
jne 0x46f412
mov ecx, 0x53f074
movzx ebx, cx
push 0
push ebx
call fcn.0041e320
add esp, 8
test eax, eax
je 0x46f420
push ebx
push eax
mov ecx, edi
call fcn.00423560
jmp 0x46f420
push 1
push 0x53f074
mov ecx, edi
call fcn.00403ee0
push ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x46f446
cmp eax, dword [esi]
jne 0x46f446
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46f481
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x46fc43
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004fe509
add esp, 0x10
lea edx, [ebp - 0xac]
add edi, 0x10
push edx
lea ecx, [ebp - 0x65]
mov dword [ebx], edi
call fcn.00451090
mov ecx, dword [eax]
mov edi, dword [ebp - 0x78]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x46f4ed
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x46f4e0
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x46f4e0
push eax
call fcn.00403b50
mov dword [ebp - 0x78], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46f4d5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x10
mov dword [ebp - 0x78], ecx
jmp 0x46f4ed
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00403ee0
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f50f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
push 3
push ecx
mov ecx, 0x56c260
mov edi, esp
call eax
add eax, 0x10
cmp dword [ebp - 0x6c], 0
mov dword [edi], eax
jne 0x46f551
mov ecx, 0x53f074
movzx ebx, cx
push 0
push ebx
call fcn.0041e320
add esp, 8
test eax, eax
je 0x46f55f
push ebx
push eax
mov ecx, edi
call fcn.00423560
jmp 0x46f55f
push 1
push 0x53f074
mov ecx, edi
call fcn.00403ee0
push ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x46f585
cmp eax, dword [esi]
jne 0x46f585
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46f5c0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x46fc43
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004fe509
add esp, 0x10
lea ecx, [ebp - 0xb4]
push ecx
add edi, 0x10
lea ecx, [ebp - 0x65]
mov dword [ebx], edi
call fcn.00451090
mov eax, dword [eax]
push eax
call fcn.005013de
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb4]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x84]
mov ecx, dword [ecx]
test ecx, ecx
je 0x46f61e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x46f62e
mov edx, dword [0x56c260]
mov eax, dword [edx + 0x10]
mov ecx, 0x56c260
call eax
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46fc48
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x70]
mov edi, dword [ecx - 0xc]
mov edx, dword [ebp - 0x8c]
mov ebx, dword [edx - 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x94], edi
add edi, ebx
mov dword [ebp - 0x6c], esi
js 0x46fc39
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x46f686
push edi
lea ecx, [ebp - 0x6c]
call fcn.00403d60
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x8c]
add ebx, ebx
push ebx
push eax
push ebx
push esi
call fcn.004fe509
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x70]
add eax, eax
push eax
push ecx
push eax
add ebx, esi
push ebx
call fcn.004fe509
add esp, 0x20
cmp edi, dword [esi - 8]
jg 0x46fc39
mov ebx, dword [ebp - 0x74]
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x46f713
cmp dword [ebx + 0xc], edx
jl 0x46f706
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x46f706
push edi
call fcn.00403b50
mov esi, eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46f6fe
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [ebp - 0x74], esi
jmp 0x46f713
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.00403ee0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f72c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
push 0x556338
push 0x53d38c
lea ecx, [ebp - 0x74]
call fcn.00423850
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x74]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
mov dword [ebp - 0x94], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x46f773
cmp eax, dword [esi]
jne 0x46f773
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x46f7aa
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x46fc43
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [ebx + 0x10]
push edx
call fcn.004fe509
add esp, 0x10
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xb0]
add ebx, 0x10
mov dword [eax], ebx
call fcn.0046b4c0
mov ebx, eax
test edi, edi
je 0x46fc48
mov ecx, dword [ebp - 0x88]
push edi
push ecx
call fcn.004fe94a
add esp, 8
test eax, eax
jne 0x46fa84
mov byte [ebp - 0x28], al
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
cmp dword [esi + 0xc], 1
jle 0x46f812
mov edx, dword [esi + 4]
push edx
lea ecx, [ebp - 0x74]
call fcn.00403c80
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044bf20
add esp, 8
xor esi, esi
lea ebx, [ebp - 0x28]
movzx ecx, byte [ebp + esi - 0x38]
push ecx
push str._02x
push ebx
call fcn.00503899
inc esi
add esp, 0xc
add ebx, 2
cmp esi, 0x10
jl 0x46f824
mov byte [ebp - 8], 0
mov eax, dword [edi - 8]
push eax
push edi
call fcn.005025f8
add esp, 8
test eax, eax
js 0x46fc39
cmp eax, dword [edi - 8]
jg 0x46fc39
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x6c], esi
test eax, 0xffff0000
jne 0x46f8ab
mov ecx, eax
movzx edi, cx
push 0
push edi
call fcn.0041e320
add esp, 8
test eax, eax
je 0x46f8ba
push edi
push eax
lea ecx, [ebp - 0x6c]
call fcn.00423560
jmp 0x46f8b7
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00423f30
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x46fc48
mov eax, dword [ebp - 0x78]
push esi
push eax
call fcn.004fe94a
add esp, 8
test eax, eax
je 0x46fba1
call fcn.0045f340
cmp dword [eax + 0x10d8], 0
jne 0x46fba1
mov edx, dword [ebp - 0x70]
push edx
push str.ChkLnchIntegrity_1_:_s
call fcn.0045f340
push eax
call fcn.0042d870
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f923
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x50], 0x10
jb 0x46f935
mov eax, dword [ebp - 0x64]
push eax
call fcn.004fe49e
add esp, 4
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.0046cbb0
lea ecx, [ebp - 0x100]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0047bec5
mov eax, dword [ebp - 0xb8]
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f98a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f9ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x65]
call fcn.0044e520
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f9d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f9f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x84]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x90]
push edi
push ecx
call fcn.004fe94a
add esp, 8
test eax, eax
jne 0x46fbc6
mov byte [ebp - 0x28], al
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
cmp dword [esi + 0xc], 1
jle 0x46facc
mov edx, dword [esi + 4]
push edx
lea ecx, [ebp - 0x74]
call fcn.00403c80
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.0044bf20
add esp, 8
xor esi, esi
lea ebx, [ebp - 0x28]
mov edi, edi
movzx ecx, byte [ebp + esi - 0x48]
push ecx
push str._02x
push ebx
call fcn.00503899
inc esi
add esp, 0xc
add ebx, 2
cmp esi, 0x10
jl 0x46fae0
mov byte [ebp - 8], 0
mov eax, dword [edi - 8]
push eax
push edi
call fcn.005025f8
add esp, 8
test eax, eax
js 0x46fc39
cmp eax, dword [edi - 8]
jg 0x46fc39
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x6c], esi
test eax, 0xffff0000
jne 0x46fb67
mov ecx, eax
movzx edi, cx
push 0
push edi
call fcn.0041e320
add esp, 8
test eax, eax
je 0x46fb76
push edi
push eax
lea ecx, [ebp - 0x6c]
call fcn.00423560
jmp 0x46fb73
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00423f30
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x46fc48
mov eax, dword [ebp - 0x78]
push esi
push eax
call fcn.004fe94a
add esp, 8
test eax, eax
je 0x46fba1
call fcn.0045f340
cmp dword [eax + 0x10d8], 0
je 0x46fc52
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f0f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46f0f0
cmp ebx, 2
jne 0x46fc13
push ecx
mov edi, esp
push esi
call fcn.00403b50
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x65]
mov dword [edi], eax
call fcn.0044f6b0
cmp eax, dword [ebp - 0xa8]
je 0x46f0f0
mov ecx, dword [ebp - 0x70]
push ecx
push str.ChkLnchIntegrity_2_:_s
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 0xc
mov dword [ebp - 0x80], 0
jmp 0x46f923
cmp ebx, 1
jne 0x46f0f0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f0f0
mov edx, dword [ebp - 0x70]
push edx
push str.ChkLnchIntegrity_3_:_s
jmp 0x46fbf9
push 0x80070057
call fcn.00404190
call fcn.00403d10
push 0x80004005
call fcn.00404190
mov ecx, dword [ebp - 0x70]
push ecx
push str.ChkLnchIntegrity_4_:_s
call fcn.0045f340
push eax
call fcn.0042d870
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 0x80], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46f917