Function at 0x42ba30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f94a1
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0046b1f0
mov byte [ebp - 0x390], 0
mov dword [ebp - 0x394], 0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0
call fcn.00461c60
push 1
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x138], 0
call fcn.00462700
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
cmove eax, dword [ebp - 0x134]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebp - 0x38c]
call fcn.00461c60
lea edx, [ebp - 0x38c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x394]
call fcn.0046aa60
test al, al
je 0x42bce3
cmp byte [ebp - 0x270], 0
lea eax, [ebp - 0x380]
push 0
cmove eax, dword [ebp - 0x384]
lea ecx, [ebp - 0x264]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00462ac0
cmp byte [ebp - 0x148], 0
lea eax, [ebp - 0x258]
lea ecx, [ebp - 0x13c]
cmove eax, dword [ebp - 0x25c]
add eax, 4
push eax
call fcn.00461ed0
cmp byte [ebp - 0x148], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42bb64
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x42bb64
push eax
call fcn.004ac7ec
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0x5527e4
lea ecx, [ebp - 0x264]
call fcn.00462ac0
cmp byte [ebp - 0x148], 0
lea esi, [ebp - 0x258]
mov ecx, dword [ebp - 0x138]
cmove esi, dword [ebp - 0x25c]
add esi, 4
test ecx, ecx
je 0x42bbb8
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
cmove eax, dword [ebp - 0x134]
cmp word [eax + ecx*2 + 2], 0x5c
je 0x42bbc8
push 0x5528b0
lea ecx, [ebp - 0x13c]
call fcn.004620f0
push esi
lea ecx, [ebp - 0x13c]
call fcn.004620f0
cmp byte [ebp - 0x148], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42bc00
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x42bc00
push eax
call fcn.004ac7ec
add esp, 4
lea ecx, [ebp - 0x13c]
call fcn.00463200
test al, al
jne 0x42bc23
push 0
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x13c]
call fcn.004638b0
push 0
push 0
push 0
push 0
push 0
push str.sgkaomoji_statics.ini
lea ecx, [ebp - 0x264]
call fcn.00462ac0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00463010
cmp byte [ebp - 0x148], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42bc7b
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x42bc7b
push eax
call fcn.004ac7ec
add esp, 4
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
cmove eax, dword [ebp - 0x134]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bca4
shr eax, 4
not al
and al, 1
jne 0x42bcbb
push ecx
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00463b40
test al, al
je 0x42bce3
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
push ecx
cmove eax, dword [ebp - 0x134]
mov ecx, edi
add eax, 4
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0046b490
mov bl, 1
jmp 0x42bce5
xor bl, bl
cmp byte [ebp - 0x270], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42bd11
mov eax, dword [ebp - 0x384]
lea ecx, [ebp - 0x380]
cmp eax, ecx
je 0x42bd11
push eax
call fcn.004ac7ec
add esp, 4
cmp byte [ebp - 0x20], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42bd3a
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
cmp ecx, eax
je 0x42bd3a
push ecx
call fcn.004ac7ec
add esp, 4
lea ecx, [ebp - 0x394]
call fcn.004643f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4