Function at 0x1000ab20
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0xf0
cmp dword [esp + 0xf8], 0x32
jae 0x1000ab39
xor eax, eax
add esp, 0xf0
ret
mov ecx, dword [esp + 0xfc]
mov eax, dword [ecx]
cmp dword [eax], 0x13
jne 0x1000ab4c
add eax, 8
mov dword [ecx], eax
mov eax, dword [ecx]
xor edx, edx
cmp dword [eax], edx
je 0x1000ab30
mov ecx, dword [eax + 4]
cmp ecx, edx
push ebx
push esi
jne 0x1000ab6f
cmp dword [eax + 8], 0x12
jne 0x1000ab6f
mov esi, dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 8], esi
jmp 0x1000ab78
lea ebx, [eax + 8]
mov dword [esp + 8], ecx
mov esi, ecx
push ebp
push edi
lea edi, [esp + 0x20]
mov dword [esp + 0x48], edx
mov dword [esp + 0xf8], edx
xor ebp, ebp
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], edx
mov al, byte [ebx]
movzx eax, al
add ebx, 4
sub eax, 2
je 0x1000ac60
sub eax, 1
je 0x1000abcc
sub eax, 1
jne 0x1000ac86
mov eax, dword [ebx]
mov dword [edi], eax
push eax
lea ecx, [esp + 0x4c]
add edi, 4
call fcn.10048e60
jmp 0x1000ac71
test edx, edx
jne 0x1000abe8
mov eax, dword [esp + 0x1c]
push eax
call sym.fbclient.dll_gds__alloc
test eax, eax
mov dword [esp + 0x18], eax
mov ebp, eax
je 0x1000aecf
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
add ebx, 4
add esi, 1
add ebx, 4
cmp eax, esi
mov dword [esp + 0x14], ecx
jge 0x1000ac04
mov esi, eax
test esi, esi
lea ecx, [esp + 0x48]
je 0x1000ac47
sub eax, esi
mov dword [edi], ebp
push ebp
mov dword [esp + 0x20], eax
add edi, 4
call fcn.10048ff0
sub esi, 1
je 0x1000ac3a
mov eax, dword [esp + 0x14]
mov dl, byte [eax]
mov byte [ebp], dl
add eax, 1
add ebp, 1
sub esi, 1
mov dword [esp + 0x14], eax
jne 0x1000ac22
mov esi, dword [esp + 0x10]
mov byte [ebp], 0
add ebp, 1
jmp 0x1000ac74
mov dword [edi], 0x1006653a
push 0x1006653a
add edi, 4
call fcn.10048ff0
mov esi, dword [esp + 0x10]
jmp 0x1000ac74
mov eax, dword [ebx]
mov dword [edi], eax
push eax
lea ecx, [esp + 0x4c]
add edi, 4
call fcn.10048ff0
add ebx, 4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x48]
cmp edi, eax
jb 0x1000ab97
jmp 0x1000ac89
sub ebx, 4
mov ecx, dword [esp + 0x10c]
mov eax, dword [ecx]
movzx ecx, byte [eax]
add ecx, 0xffffffff
cmp ecx, 0x11
ja case.0x1000aca8.1
movzx ecx, byte [ecx + 0x1000aef8]
jmp dword [ecx*4 + 0x1000aedc]
lea edx, [esp + 0x34]
cmp edi, edx
jae 0x1000acc7
lea ecx, [esp + 0x33]
sub ecx, edi
shr ecx, 2
add ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0
call sym.fbclient.dll_gds__decode
mov ecx, dword [esp + 0x104]
mov ebp, dword [esp + 0x108]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x18]
push ecx
push ebp
push eax
push edx
push 0
call fcn.100489c0
add esp, 0x18
test eax, eax
jge 0x1000ae87
xor edi, edi
mov eax, 0x14000001
cmp esi, eax
je 0x1000ad38
mov eax, dword [edi*8 + 0x1006b390]
add edi, 1
test eax, eax
jne 0x1000ad13
mov edx, dword [esp + 0x104]
push esi
push str.unknown_ISC_error__ld
push edx
jmp 0x1000ae7e
cmp byte [esp + 0x110], 0
je 0x1000ad90
mov eax, dword [edi*8 + 0x1006b38c]
push 0x25
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x1000ad90
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [edi*8 + 0x1006b38c]
push ecx
mov ecx, dword [esp + 0x114]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x1c
jmp 0x1000ae87
mov eax, dword [edi*8 + 0x1006b38c]
mov ecx, dword [esp + 0x104]
lea edx, [esp + 0x48]
push edx
push eax
push ebp
push ecx
call fcn.100488c0
add esp, 0x10
jmp 0x1000ae87
mov edx, dword [eax + 4]
cmp byte [esp + 0x110], 0
je 0x1000add8
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x104]
call fcn.10009a20
jmp 0x1000ae87
mov esi, dword [esp + 0x108]
mov edi, dword [esp + 0x104]
push esi
push edx
push edi
call dword [sym.imp.MSVCR80.dll_strncpy]
mov byte [edi + esi - 1], 0
jmp 0x1000ae84
push esi
call dword [sym.imp.MSVCR80.dll_strerror]
add esp, 4
mov edx, eax
jmp 0x1000adb6
mov eax, dword [esp + 0x104]
push esi
push str.unknown_dos_error__ld
push eax
jmp 0x1000ae7e
push esi
push str.next_mach_error__ld
jmp 0x1000ae76
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x104]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
movzx ecx, ax
push ecx
push esi
push 0
push 0x10ff
call edi
test eax, eax
jne 0x1000ae87
mov edx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x108]
push edx
push eax
push 0
push esi
push 0
push 0x10ff
call edi
test eax, eax
jne 0x1000ae87
push esi
push str.unknown_Win32_error__ld
mov ecx, dword [esp + 0x10c]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000ae95
push eax
call sym.fbclient.dll_gds__free
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x104]
mov dword [edx], ebx
cmp byte [ecx], 0
mov eax, ecx
je 0x1000aeb8
lea esp, [esp]
add eax, 1
cmp byte [eax], 0
jne 0x1000aeb0
pop edi
pop ebp
pop esi
sub eax, ecx
pop ebx
add esp, 0xf0
ret
test edx, edx
je 0x1000aecf
push edx
call sym.fbclient.dll_gds__free
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xf0
ret