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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dc856
mov eax, dword fs:[0]
push eax
sub esp, 0x5d8
mov eax, dword [0x7ce4e4]
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 esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x47c716
nop dword [eax + eax]
mov eax, dword [ecx + 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
push ecx
call eax
mov ecx, dword [esi + 0x10]
add esp, 4
test ecx, ecx
jne 0x47c700
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov byte [ebp - 0x5e0], 0
mov dword [ebp - 0x5e4], 0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0
call fcn.00499a50
push 1
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x138], 0
call fcn.0049a590
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 - 0x264]
call fcn.00499a50
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5e4]
call fcn.004a40b0
test al, al
je 0x47c990
cmp byte [ebp - 0x148], 0
lea eax, [ebp - 0x258]
push 0
cmove eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x4b4]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.0049a8e0
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00499d10
cmp byte [ebp - 0x398], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x47c80f
mov eax, dword [ebp - 0x4ac]
lea ecx, [ebp - 0x4a8]
cmp eax, ecx
je 0x47c80f
push eax
call fcn.005cff1c
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0x785b9c
lea ecx, [ebp - 0x38c]
call fcn.0049a8e0
cmp byte [ebp - 0x270], 0
lea edi, [ebp - 0x380]
mov ecx, dword [ebp - 0x138]
cmove edi, dword [ebp - 0x384]
add edi, 4
test ecx, ecx
je 0x47c863
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
cmove eax, dword [ebp - 0x134]
cmp word [eax + ecx*2 + 2], 0x5c
je 0x47c873
push 0x785c68
lea ecx, [ebp - 0x13c]
call fcn.00499e00
push edi
lea ecx, [ebp - 0x13c]
call fcn.00499e00
cmp byte [ebp - 0x270], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x47c8ab
mov eax, dword [ebp - 0x384]
lea ecx, [ebp - 0x380]
cmp eax, ecx
je 0x47c8ab
push eax
call fcn.005cff1c
add esp, 4
lea ecx, [ebp - 0x13c]
call fcn.0049b090
test al, al
jne 0x47c8d0
push 1
push 0
lea eax, [ebp - 0x5e4]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0049b850
push 0
push 0
push 0
push 0
push 0
push str.sgkaomoji_statics.ini
lea ecx, [ebp - 0x5dc]
call fcn.0049a8e0
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0049af30
cmp byte [ebp - 0x4c0], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x47c928
mov eax, dword [ebp - 0x5d4]
lea ecx, [ebp - 0x5d0]
cmp eax, ecx
je 0x47c928
push eax
call fcn.005cff1c
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 0x47c951
shr eax, 4
not al
test al, 1
jne 0x47c968
push ecx
lea eax, [ebp - 0x5e4]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0049bb20
test al, al
je 0x47c990
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
push ecx
cmove eax, dword [ebp - 0x134]
mov ecx, esi
add eax, 4
push eax
lea eax, [ebp - 0x5e4]
push eax
call fcn.004a4d20
mov bl, 1
jmp 0x47c992
xor bl, bl
cmp byte [ebp - 0x148], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x47c9be
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x47c9be
push eax
call fcn.005cff1c
add esp, 4
cmp byte [ebp - 0x20], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x47c9e7
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x47c9e7
push eax
call fcn.005cff1c
add esp, 4
mov eax, dword [ebp - 0x5e4]
test eax, eax
je 0x47ca3d
mov esi, eax
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x5e4], eax
test esi, esi
je 0x47ca39
mov dword [esi], vtable.t_str.0
lea ecx, [esi + 0xc]
cmp byte [esi + 0x11c], 0
jne 0x47ca25
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x47ca25
push eax
call fcn.005cff1c
add esp, 4
push 0x128
push esi
call fcn.005be247
mov eax, dword [ebp - 0x5e4]
add esp, 8
test eax, eax
jne 0x47c9f1
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.005be209
mov esp, ebp
pop ebp
ret 4