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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x621400
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x34], eax
cmp dword [ebp + 0xc], ebx
jne 0x5122d3
push ebx
push ebx
call fcn.004254c8
mov ecx, eax
call fcn.00573a4e
mov ecx, dword [0x6c1850]
cmp eax, ecx
jne 0x5122d3
cmp dword [0x6bb800], ecx
jne 0x5122d3
cmp dword [0x6bb7fc], ecx
je 0x512c1f
xor edi, edi
inc edi
push ebx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc8], 0xf
call fcn.004055a6
lea eax, [esp + 0xc8]
mov dword [esp + 0x110], ebx
call fcn.005486f7
push str.ppinstall5.dat
push eax
lea eax, [esp + 0xec]
push eax
mov byte [esp + 0x11c], 1
call fcn.00404922
add esp, 0xc
push edi
lea ecx, [esp + 0xb0]
push 0x4000
push ecx
mov byte [esp + 0x11c], 2
call fcn.005482fb
add esp, 0xc
push ebx
push edi
lea ecx, [esp + 0xec]
mov esi, eax
call fcn.004055c2
push ebx
push edi
lea ecx, [esp + 0xd0]
mov byte [esp + 0x118], bl
call fcn.004055c2
cmp esi, ebx
je 0x5123a5
push 2
sub esp, 0x1c
lea eax, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 3
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], bl
call fcn.00572868
mov dword [esp + 0x14], eax
push ebx
or esi, 0xffffffff
push edi
lea ecx, [esp + 0xb4]
mov dword [esp + 0x118], esi
call fcn.004055c2
cmp dword [esp + 0x14], ebx
je 0x512bac
lea eax, [esp + 0xac]
push eax
call fcn.004010df
call fcn.004e0076
mov dword [esp + 0x110], 4
cmp dword [esp + 0xc0], ebx
je 0x51247f
sub esp, 0x1c
lea eax, [esp + 0xc8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004051ae
lea ecx, [esp + 0x100]
call fcn.0054af3f
add esp, 0x1c
push esi
push ebx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x11c], 5
call fcn.0040529a
push ebx
push edi
lea ecx, [esp + 0xec]
mov byte [esp + 0x118], 4
call fcn.004055c2
push 8
sub esp, 0x1c
lea eax, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 6
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], 4
call fcn.00572868
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
push ebx
push edi
lea ecx, [esp + 0xb4]
mov dword [esp + 0x118], esi
call fcn.004055c2
cmp dword [esp + 0x14], ebx
je 0x512bac
push 0x641040
lea ecx, [esp + 0xb0]
call fcn.0040518c
lea ecx, [esp + 0x38]
mov dword [esp + 0x110], 7
call fcn.00403859
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x114], 8
call fcn.004010df
call fcn.004dc5f5
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004b2299
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
jmp 0x512574
cmp dword [esp + 0x14], ebx
je 0x51259c
lea ecx, [esp + 0x2c]
call fcn.004b22bf
push esi
add eax, 0x1c
push ebx
push eax
lea ecx, [esp + 0xb8]
call fcn.0040529a
cmp dword [esp + 0xc0], ebx
je 0x51256b
push 3
sub esp, 0x1c
lea eax, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 9
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], 8
call fcn.00572868
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x2c]
call fcn.00404847
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x54]
lea ecx, [esp + 0x28]
call fcn.004b2299
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00403a9f
test al, al
je 0x512501
lea ecx, [esp + 0x38]
mov byte [esp + 0x110], 7
call fcn.0040397a
push ebx
push edi
lea ecx, [esp + 0xb4]
mov dword [esp + 0x118], esi
call fcn.004055c2
cmp dword [esp + 0x14], ebx
je 0x512bac
push ebx
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004010a2
push eax
call fcn.00433256
mov dword [esp + 0x110], 0xa
push dword [eax]
lea ecx, [esp + 0xb0]
call fcn.0040518c
mov byte [esp + 0x110], 0xc
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00405172
lea eax, [esp + 0xac]
call fcn.00562090
mov esi, str.PluginDataSpellingPersonal
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [esp + 0xb4]
call fcn.00403f16
push str..dat
lea ecx, [esp + 0x3c]
call fcn.0040518c
mov esi, eax
push 0x65ca38
lea ecx, [esp + 0x5c]
mov byte [esp + 0x114], 0xd
call fcn.0040518c
push eax
lea eax, [esp + 0x78]
push str._spe
push eax
mov byte [esp + 0x11c], 0xe
call fcn.004049b4
add esp, 0xc
push 0x65ca34
push eax
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x11c], 0xf
call fcn.00404922
add esp, 0xc
push esi
push eax
lea eax, [esp + 0xec]
push eax
mov byte [esp + 0x11c], 0x10
call fcn.00404969
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x11c], 0x11
call fcn.00403e6f
push ebx
push edi
lea ecx, [esp + 0xec]
call fcn.004055c2
push ebx
push edi
lea ecx, [esp + 0x98]
call fcn.004055c2
push ebx
push edi
lea ecx, [esp + 0x7c]
call fcn.004055c2
push ebx
push edi
lea ecx, [esp + 0x60]
call fcn.004055c2
push ebx
push edi
lea ecx, [esp + 0x40]
call fcn.004055c2
push ebx
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe4], 0xf
call fcn.004055a6
push edi
lea eax, [esp + 0xcc]
push 0x4000
push eax
lea eax, [esp + 0xb8]
mov byte [esp + 0x11c], 0x12
call fcn.005482fb
add esp, 0xc
cmp eax, ebx
je 0x51277c
push 4
sub esp, 0x1c
lea eax, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 0x13
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], 0x12
call fcn.00572868
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
push ebx
push edi
lea ecx, [esp + 0xd0]
call fcn.004055c2
or dword [esp + 0x110], 0xffffffff
push ebx
push edi
lea ecx, [esp + 0xb4]
call fcn.004055c2
cmp dword [esp + 0x14], ebx
je 0x512bac
push 0x641040
lea ecx, [esp + 0xb0]
call fcn.0040518c
lea eax, [esp + 0xc8]
push ebx
push eax
mov dword [esp + 0x118], 0x14
call fcn.004254c8
mov ecx, eax
call fcn.0057298d
lea esi, [esp + 0x20]
mov byte [esp + 0x110], 0x15
call fcn.0051e087
mov byte [esp + 0x110], 0x16
cmp dword [esp + 0xe0], 0x10
mov eax, dword [esp + 0xcc]
jae 0x51280c
lea eax, [esp + 0xcc]
push 0x20019
push eax
push 0x80000002
lea esi, [esp + 0x2c]
call fcn.0051e0ea
cmp eax, ebx
je 0x512865
push 0x1000
push 0x641040
lea eax, [esp + 0x18]
push eax
mov eax, esi
push eax
call fcn.0051e2f9
mov byte [esp + 0x110], 0x17
push dword [eax]
lea ecx, [esp + 0xb0]
call fcn.0040556d
mov byte [esp + 0x110], 0x16
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00405172
cmp dword [esp + 0xc0], ebx
je 0x512941
push 4
push ebx
lea eax, [esp + 0xb4]
push eax
lea esi, [esp + 0x44]
call fcn.00406cc7
push str.AKgT
mov ecx, eax
mov byte [esp + 0x114], 0x18
call fcn.00404ae8
push ebx
test eax, eax
push edi
mov ecx, esi
setne byte [esp + 0x27]
mov byte [esp + 0x118], 0x16
call fcn.004055c2
cmp byte [esp + 0x1f], bl
je 0x512905
sub esp, 0x1c
lea eax, [esp + 0xc8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004051ae
lea ecx, [esp + 0x54]
call fcn.0054af3f
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x11c], 0x19
call fcn.0040529a
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x118], 0x16
call fcn.004055c2
push 5
sub esp, 0x1c
lea eax, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 0x1a
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], 0x16
call fcn.00572868
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x20]
call fcn.0051e0bd
push ebx
push edi
lea ecx, [esp + 0xd0]
call fcn.004055c2
or dword [esp + 0x110], 0xffffffff
push ebx
push edi
lea ecx, [esp + 0xb4]
call fcn.004055c2
cmp dword [esp + 0x14], ebx
je 0x512bac
push 0x641040
lea ecx, [esp + 0xb0]
call fcn.0040518c
lea eax, [esp + 0xc8]
push 2
push eax
mov dword [esp + 0x118], 0x1b
call fcn.004254c8
mov ecx, eax
call fcn.0057298d
lea esi, [esp + 0x20]
mov byte [esp + 0x110], 0x1c
call fcn.0051e087
mov byte [esp + 0x110], 0x1d
cmp dword [esp + 0xe0], 0x10
mov eax, dword [esp + 0xcc]
jae 0x5129db
lea eax, [esp + 0xcc]
push 0x20019
push eax
push 0x80000001
lea esi, [esp + 0x2c]
call fcn.0051e0ea
cmp eax, ebx
je 0x512a66
lea eax, [esp + 0x38]
push 3
push eax
call fcn.004254c8
mov ecx, eax
call fcn.0057298d
mov byte [esp + 0x110], 0x1e
cmp dword [eax + 0x18], 0x10
jb 0x512a19
mov eax, dword [eax + 4]
jmp 0x512a1c
add eax, 4
push 0x1000
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0051e2f9
mov byte [esp + 0x110], 0x1f
push dword [eax]
lea ecx, [esp + 0xb0]
call fcn.0040556d
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00405172
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x118], 0x1d
call fcn.004055c2
cmp dword [esp + 0xc0], ebx
je 0x512afc
sub esp, 0x1c
lea eax, [esp + 0xc8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004051ae
lea ecx, [esp + 0x54]
call fcn.0054af3f
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x11c], 0x20
call fcn.0040529a
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x118], 0x1d
call fcn.004055c2
push 6
sub esp, 0x1c
lea eax, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 0x21
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], 0x1d
call fcn.00572868
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x20]
call fcn.0051e0bd
push ebx
push edi
lea ecx, [esp + 0xd0]
call fcn.004055c2
or dword [esp + 0x110], 0xffffffff
push ebx
push edi
lea ecx, [esp + 0xb4]
call fcn.004055c2
cmp dword [esp + 0x14], ebx
je 0x512bac
lea eax, [esp + 0xe4]
push eax
call fcn.004010a2
push 0xf
pop ecx
mov edx, eax
call fcn.00431f9c
mov dword [esp + 0x110], 0x22
cmp dword [esp + 0xf8], ebx
je 0x512b96
push 7
sub esp, 0x1c
lea eax, [esp + 0x104]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004051ae
mov byte [esp + 0x130], 0x23
call fcn.004254c8
mov ecx, eax
mov byte [esp + 0x130], 0x22
call fcn.00572868
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
or dword [esp + 0x110], 0xffffffff
push ebx
push edi
lea ecx, [esp + 0xec]
call fcn.004055c2
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push str.forceinit
call fcn.0040518c
mov dword [esp + 0x130], 0x24
call fcn.004254c8
or dword [esp + 0x130], 0xffffffff
mov ecx, eax
call fcn.00572868
cmp dword [esp + 0x14], ebx
jne 0x512bf0
push edi
push ebx
push dword [esp + 0x3c]
call fcn.005113bd
mov esi, 0xdbba0
cmp dword [esp + 0x18], ebx
je 0x512c00
mov esi, 0xea60
call fcn.0051132b
test eax, eax
je 0x512c0e
mov esi, 0x3a98
mov eax, dword [esp + 0x34]
push ebx
push esi
push 0x16
push dword [eax + 0x20]
call dword [0x634820]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret 8