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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ea2b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c8
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4d8], 1
cmp dword [edi + 0x40], 0
jne 0x4ae54d
lea ecx, [ebp - 0x158]
call fcn.0049a880
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x4d8], 1
call fcn.00499a50
lea edx, [ebp - 0x280]
mov dword [ebp - 4], 1
call fcn.004aa7f0
cmp byte [ebp - 0x164], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0
mov byte [ebp - 0x4d1], al
lea eax, [ebp - 0x274]
cmove eax, dword [ebp - 0x278]
push 0
push 0
push 0
add eax, 4
push eax
call fcn.0049a8e0
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x158]
call fcn.00499d10
cmp byte [ebp - 0x3b4], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4ae37a
mov eax, dword [ebp - 0x4c8]
lea ecx, [ebp - 0x4c4]
cmp eax, ecx
je 0x4ae37a
push eax
call fcn.005cff1c
add esp, 4
mov byte [ebp - 4], 0
cmp byte [ebp - 0x164], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4ae3aa
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
cmp eax, ecx
je 0x4ae3aa
push eax
call fcn.005cff1c
add esp, 4
cmp byte [ebp - 0x4d1], 0
je 0x4ae453
push 0
push 0
push 0
push 0
push 0
push str.Data_sgim_cer.bin
lea ecx, [ebp - 0x3a8]
call fcn.0049a8e0
cmp byte [ebp - 0x28c], 0
lea esi, [ebp - 0x39c]
mov ecx, dword [ebp - 0x154]
cmove esi, dword [ebp - 0x3a0]
add esi, 4
test ecx, ecx
je 0x4ae40b
cmp byte [ebp - 0x3c], 0
lea eax, [ebp - 0x14c]
cmove eax, dword [ebp - 0x150]
cmp word [eax + ecx*2 + 2], 0x5c
je 0x4ae41b
push 0x785c68
lea ecx, [ebp - 0x158]
call fcn.00499e00
push esi
lea ecx, [ebp - 0x158]
call fcn.00499e00
cmp byte [ebp - 0x28c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4ae453
mov eax, dword [ebp - 0x3a0]
lea ecx, [ebp - 0x39c]
cmp eax, ecx
je 0x4ae453
push eax
call fcn.005cff1c
add esp, 4
mov dword [ebp - 4], 2
cmp dword [ebp - 0x154], 0
je 0x4ae524
cmp byte [ebp - 0x3c], 0
lea eax, [ebp - 0x14c]
cmove eax, dword [ebp - 0x150]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ae524
shr eax, 4
not al
test al, 1
je 0x4ae524
cmp byte [ebp - 0x3c], 0
lea ecx, [ebp - 0x14c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmove ecx, dword [ebp - 0x150]
add ecx, 4
mov dword [ebp - 0x18], 0
mov edx, ecx
movups xmmword [ebp - 0x2c], xmm0
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4ae4c6
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00474450
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004bb2b0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4ae524
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ae51a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae56b
push ecx
push edx
call fcn.005be247
add esp, 8
cmp byte [ebp - 0x3c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4ae54d
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
cmp eax, ecx
je 0x4ae54d
push eax
call fcn.005cff1c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.005c44be
int3