Function at 0x5a8210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x670358
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d7160]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5a8280
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.005a9680
xor esi, esi
mov dword [esp + 0x8c], esi
mov eax, str.x_default
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5a82b4
sub eax, edx
push eax
push str.x_default
lea ecx, [esp + 0x4c]
call fcn.005a9680
lea eax, [esp + 0x60]
call fcn.005ac2e0
lea eax, [esp + 0x44]
call fcn.005ac2e0
mov eax, 0x10
cmp dword [esp + 0x78], eax
jb 0x5a82f5
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
jmp 0x5a82fd
lea edx, [esp + 0x64]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x5c], eax
jb 0x5a830d
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
jmp 0x5a8315
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x38]
mov byte [esp + 0x90], 2
call fcn.005aadf0
add esp, 4
push esi
push 0xe00
push 1
lea edx, [esp + 0x40]
push edx
add ebp, 0x50
push ebp
call fcn.005abe80
mov ebp, eax
add esp, 0x14
cmp ebp, esi
jne 0x5a837a
mov eax, 0x66
mov dword [esp + 0x20], eax
push 0x6cf9d8
lea eax, [esp + 0x24]
mov ecx, str.Failed_to_find_or_create_array_node
push eax
mov dword [esp + 0x2c], ecx
call fcn.0060ac26
mov eax, dword [ebp + 4]
test eax, 0x1000
jne 0x5a83ac
mov ecx, dword [ebp + 0x48]
cmp ecx, esi
je 0x5a8399
mov edx, dword [ebp + 0x4c]
sub edx, ecx
sar edx, 2
jne 0x5a8486
test eax, 0x800
je 0x5a8486
or eax, 0x1000
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x48]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x17], 0
je 0x5a8539
mov ecx, dword [ebp + 0x4c]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x1c], ecx
je 0x5a8539
mov ecx, dword [ebp + 0x48]
cmp ecx, esi
je 0x5a83e7
mov eax, dword [ebp + 0x4c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a83ec
call fcn.0060b331
mov ecx, dword [ebp + 0x48]
mov esi, dword [ecx + edi*4]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5a8575
mov edx, dword [esi + 0x5c]
sub edx, eax
sar edx, 2
je 0x5a8575
test eax, eax
je 0x5a8419
mov ecx, dword [esi + 0x5c]
sub ecx, eax
sar ecx, 2
jne 0x5a841e
call fcn.0060b331
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
add ecx, 8
push 8
push str.xml:lang
xor ebx, ebx
call fcn.005a9340
test eax, eax
jne 0x5a8575
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5a8450
mov edx, dword [esi + 0x5c]
sub edx, eax
sar edx, 2
jne 0x5a8455
call fcn.0060b331
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x38]
add ecx, 0x24
push 9
push str.x_default
xor ebx, ebx
call fcn.005a9340
test eax, eax
je 0x5a84a7
add edi, 1
cmp edi, dword [esp + 0x1c]
jae 0x5a8539
xor esi, esi
jmp 0x5a83d4
mov eax, 0x66
mov dword [esp + 0x20], eax
push 0x6cf9d8
lea eax, [esp + 0x24]
mov ecx, str.Localized_text_array_is_not_alt_text
push eax
mov dword [esp + 0x2c], ecx
call fcn.0060ac26
test edi, edi
mov dword [esp + 0x28], esi
mov byte [esp + 0x17], 1
je 0x5a8539
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x5a84c9
mov ecx, dword [ebp + 0x4c]
sub ecx, eax
sar ecx, 2
jne 0x5a84ce
call fcn.0060b331
mov edx, dword [ebp + 0x48]
mov eax, dword [edx]
mov ecx, edx
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x5a84e9
mov eax, dword [ebp + 0x4c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a84ee
call fcn.0060b331
mov esi, dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
lea ebx, [edi*4]
add esi, ebx
test eax, eax
je 0x5a850b
mov ecx, dword [ebp + 0x4c]
sub ecx, eax
sar ecx, 2
jne 0x5a8510
call fcn.0060b331
mov edx, dword [ebp + 0x48]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x5a852a
mov eax, dword [ebp + 0x4c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a852f
call fcn.0060b331
mov ecx, dword [ebp + 0x48]
mov edx, dword [esp + 0x1c]
mov dword [ebx + ecx], edx
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
push esi
push ecx
push ebp
call fcn.005a7720
add esp, 0x10
xor edx, edx
mov edi, str.x_default
mov ecx, 0xa
repe cmpsb byte [esi], byte es:[edi]
movzx eax, al
sete bl
cmp eax, 5
ja case.default.0x5a856e
jmp dword [eax*4 + 0x5a881c]
mov eax, 0x66
mov dword [esp + 0x20], eax
push 0x6cf9d8
lea eax, [esp + 0x24]
mov ecx, str.Language_qualifier_must_be_first
push eax
mov dword [esp + 0x2c], ecx
call fcn.0060ac26
mov eax, dword [esp + 0x18]
push eax
push str.x_default
push ebp
call fcn.005a7c00
add esp, 0xc
test bl, bl
jne 0x5a874c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push ecx
push edx
jmp 0x5a8743
test bl, bl
jne 0x5a8600
cmp byte [esp + 0x17], bl
mov edi, dword [esp + 0x30]
je 0x5a85f0
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x5a85f0
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
call fcn.005a9ab0
test al, al
je 0x5a85f0
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.005a72a0
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.005a72a0
jmp 0x5a871e
mov eax, dword [ebp + 0x48]
xor edi, edi
test eax, eax
je 0x5a8679
mov ebx, dword [ebp + 0x4c]
sub ebx, eax
sar ebx, 2
mov dword [esp + 0x1c], ebx
je 0x5a8679
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x5a862a
mov eax, dword [ebp + 0x4c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a862f
call fcn.0060b331
mov eax, dword [ebp + 0x48]
mov esi, dword [eax + edi*4]
cmp esi, dword [esp + 0x28]
je 0x5a8672
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x3c], 0x10
mov edx, dword [eax + 0x38]
lea ecx, [esi + 0x24]
jb 0x5a8650
mov eax, dword [eax + 0x28]
jmp 0x5a8653
add eax, 0x28
push edx
push eax
mov eax, dword [ecx + 0x14]
xor ebx, ebx
call fcn.005a9340
test eax, eax
jne 0x5a866e
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.005a72a0
mov ebx, dword [esp + 0x1c]
add edi, 1
cmp edi, ebx
jb 0x5a8617
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
call fcn.005a72a0
jmp 0x5a871e
cmp byte [esp + 0x17], 0
mov edi, dword [esp + 0x30]
je 0x5a86b8
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x5a86b8
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
call fcn.005a9ab0
test al, al
je 0x5a86b8
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.005a72a0
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.005a72a0
jmp 0x5a871e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push ecx
push edx
jmp 0x5a8711
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x5a86f2
mov eax, dword [ebp + 0x4c]
sub eax, ecx
sar eax, 2
cmp eax, 1
jne 0x5a86f2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
call fcn.005a72a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebp
call fcn.005a7c00
add esp, 0xc
jmp 0x5a871e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebp
call fcn.005a7c00
add esp, 0xc
test bl, bl
jne 0x5a874c
cmp byte [esp + 0x17], 0
jne 0x5a874c
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x5a874c
mov eax, dword [ebp + 0x4c]
sub eax, ecx
sar eax, 2
cmp eax, 1
jne 0x5a874c
mov ecx, dword [esp + 0x18]
push ecx
push str.x_default
push ebp
call fcn.005a7c00
add esp, 0xc
mov byte [esp + 0x8c], 1
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, ebx
je 0x5a877c
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
push edx
call fcn.005a9c30
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call fcn.00607c35
add esp, 4
mov esi, 0x10
mov byte [esp + 0x8c], 0
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
jb 0x5a87a8
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00607c35
add esp, 4
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x78], esi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
jb 0x5a87d7
mov edx, dword [esp + 0x64]
push edx
call fcn.00607c35
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00607d6d
add esp, 0x7c
ret 0xc
mov eax, 9
mov dword [esp + 0x20], eax
push 0x6cf9d8
lea eax, [esp + 0x24]
mov ecx, str.Unexpected_result_from_ChooseLocalizedText
push eax
mov dword [esp + 0x2c], ecx
call fcn.0060ac26
xchg esi, eax
test dword [edx], ebx
rol byte [ebp - 0x7974ffa6], 0x5a
add ch, al
xchg byte [edx], bl
rol dword [esi - 0x78f8ffa6], 1
pop edx
add ah, cl
int3