Function at 0x100237e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cd197
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x10102f10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x7c], 0
push dword [edi + 0xbc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002408d
lea eax, [edi + 0xa8]
mov dword [ebp - 0x94], eax
mov esi, dword [eax]
mov ecx, eax
mov dword [ebp - 4], 0
push dword [esi + 4]
call fcn.10025fc0
mov eax, dword [edi + 0xa8]
mov dword [eax + 4], esi
mov eax, dword [edi + 0xa8]
mov dword [eax], esi
mov eax, dword [edi + 0xa8]
mov dword [eax + 8], esi
mov dword [edi + 0xac], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x160], 0x100d90e4
mov dword [ebp - 0xf0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov byte [ebp - 4], 2
push 0
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.10021720
mov eax, dword [ebp - 0x160]
push 8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x164], eax
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10056980
mov esi, eax
add esp, 4
test esi, esi
je 0x10023923
push 1
mov byte [ebp - 4], 4
call fcn.1003bbe6
add esp, 4
mov dword [esi + 4], eax
jmp 0x10023925
xor esi, esi
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x120], eax
mov eax, dword [0x10108a98]
mov dword [ebp - 0x110], eax
mov eax, dword [0x10108a9c]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x108], 0
mov byte [ebp - 0x113], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x118], 0
push 0x40
push 0x21
push dword [edi + 0xbc]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 5
call fcn.10026b20
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x154], 6
jne 0x10023b7d
push 2
push 0
push 0
lea ecx, [ebp - 0x160]
call fcn.10027060
lea eax, [ebp - 0x160]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x128]
test ecx, ecx
je 0x10023a57
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 6
call fcn.10026260
mov byte [ebp - 0x88], al
mov eax, dword [ebp - 0x160]
mov byte [ebp - 4], 7
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x154], 6
jne 0x10023aa9
mov ecx, dword [ebp + ecx - 0x128]
lea edx, [ebp - 0x28]
push 1
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov eax, dword [ebp - 0x160]
mov byte [ebp - 4], 8
jmp 0x10023ac2
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 4], 9
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x128]
test ecx, ecx
je 0x10023ad5
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
mov dword [ebp - 0x7c], eax
test eax, eax
jle 0x10023b32
lea esi, [eax + 1]
push esi
call fcn.10064f7d
push esi
mov edi, eax
push 0
push edi
call fcn.10092e90
add esp, 0x10
lea ecx, [ebp - 0x160]
push 0
push 0
push 0
call fcn.10027060
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x160]
cdq
push edx
push eax
push edi
call fcn.10026ef0
push edi
lea ecx, [ebp - 0x58]
call fcn.10026550
push edi
call fcn.10064f86
add esp, 4
lea ecx, [ebp - 0x150]
call fcn.10026650
test eax, eax
jne 0x10023b7d
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x128], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x154]
and eax, 0x17
mov dword [ebp + ecx - 0x154], eax
mov ecx, dword [ebp + ecx - 0x150]
and ecx, eax
jne 0x100240a8
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.10040d90
mov edi, eax
add esp, 4
mov dword [ebp - 0x164], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x10024052
push str.icons_info
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.10026550
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xb
push eax
push edi
call fcn.10041da0
add esp, 8
mov byte [ebp - 4], 0xa
mov esi, eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xa0], esi
call fcn.10008170
push esi
call fcn.10041d40
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x7c], eax
test ecx, ecx
jle 0x10024049
push eax
push esi
call fcn.10040c90
add esp, 8
mov dword [ebp - 0x80], eax
call fcn.100093c0
mov ecx, eax
test ecx, ecx
je 0x100240f7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x74], eax
mov esi, 0x100d85d4
mov byte [ebp - 4], 0xc
shr esi, 0x10
mov dword [ebp - 0x84], esi
test esi, esi
jne 0x10023c59
mov eax, 0x100d85d4
lea ecx, [ebp - 0x74]
movzx eax, ax
push eax
call fcn.10009ca0
jmp 0x10023cd0
push 0
push 0
push 0xffffffffffffffff
push 0x100d85d4
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x10023cc2
mov ecx, dword [ebp - 0x74]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x10023c95
push esi
lea ecx, [ebp - 0x74]
call fcn.1000a740
mov ecx, dword [ebp - 0x74]
push esi
push ecx
push 0xffffffffffffffff
push 0x100d85d4
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x74]
cmp esi, dword [eax - 8]
jg 0x100240ed
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x74]
mov word [eax + esi*2], cx
jmp 0x10023cca
lea ecx, [ebp - 0x74]
call fcn.10008fb0
mov esi, dword [ebp - 0x84]
push str.file_name
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10026550
push 0xfde9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x9c]
push eax
call fcn.10041ec0
add esp, 0x14
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x10
cmp edx, 0x10
jb 0x10023d4e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10023d44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024101
push edx
push ecx
call fcn.10064ae7
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov edx, dword [ebp - 0x74]
or eax, 0xffffffff
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023d7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100093c0
mov ecx, eax
test ecx, ecx
je 0x100240f7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0x12
test esi, esi
jne 0x10023db6
mov eax, 0x100d85d4
lea ecx, [ebp - 0x78]
movzx eax, ax
push eax
call fcn.10009ca0
jmp 0x10023e27
push 0
push 0
push 0xffffffffffffffff
push 0x100d85d4
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x10023e1f
mov ecx, dword [ebp - 0x78]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x10023df2
push esi
lea ecx, [ebp - 0x78]
call fcn.1000a740
mov ecx, dword [ebp - 0x78]
push esi
push ecx
push 0xffffffffffffffff
push 0x100d85d4
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x78]
cmp esi, dword [eax - 8]
jg 0x100240ed
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x78]
mov word [eax + esi*2], cx
jmp 0x10023e27
lea ecx, [ebp - 0x78]
call fcn.10008fb0
push str.icon_name
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10026550
push 0xfde9
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x98]
push eax
call fcn.10041ec0
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x16
cmp edx, 0x10
jb 0x10023ea5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10023e9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024101
push edx
push ecx
call fcn.10064ae7
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x78]
or eax, 0xffffffff
mov byte [ebp - 4], 0x17
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023ed6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100093c0
mov ecx, eax
test ecx, ecx
je 0x100240f7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x80], eax
push dword [ebp - 0x98]
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 0x18
push dword [eax + 0x34]
lea eax, [ebp - 0x80]
push str._s___s
push eax
call fcn.10009090
mov esi, dword [ebp - 0x80]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023fcf
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
push eax
call fcn.10008b90
add eax, 0x10
mov dword [ebp - 0x8c], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0x19
push eax
call fcn.10008b90
or dword [ebp - 0x90], 2
add eax, 0x10
add esp, 8
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.10021000
mov ecx, dword [ebp - 0x94]
push eax
add eax, 0x10
push eax
push 0
lea eax, [ebp - 0x16c]
push eax
call fcn.10021230
mov edx, dword [ebp - 0x88]
or eax, 0xffffffff
mov byte [ebp - 4], 0x18
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023fb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023fcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10023feb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x98]
or eax, 0xffffffff
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002400d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9c]
or eax, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002402f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0xa8]
jge 0x10024049
mov esi, dword [ebp - 0xa0]
jmp 0x10023c07
push edi
call fcn.10040c20
add esp, 4
lea ecx, [ebp - 0x160]
call fcn.10021eb0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x1002408d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10024083
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024101
push edx
push ecx
call fcn.10064ae7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064e61
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x100240b4
mov esi, str.ios_base::badbit_set
jmp 0x100240c4
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x8c]
push 1
push eax
call fcn.10020590
add esp, 8
lea ecx, [ebp - 0x3c]
push eax
push esi
call fcn.1001de40
push 0x100f7470
lea eax, [ebp - 0x3c]
push eax
call fcn.10091f6d
push 0x80070057
call fcn.10008920
push 0x80004005
call fcn.10008920
call fcn.100963a9
int3