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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001fc18
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x10025018]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.1000d700
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x100057a5
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push esi
push esi
push 2
mov ecx, edi
call edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x14]
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push esi
push esi
mov ecx, edi
call eax
mov ebx, dword [esp + 0x14]
push ebx
call dword [0x100201c0]
mov edx, dword [edi]
mov edx, dword [edx + 0x24]
add esp, 4
push 1
mov esi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov edi, dword [esi + 0x3c]
mov eax, 0xdfff
and word [edi + esi + 0x16], ax
add edi, esi
push 0x10020d7c
call fcn.10004c20
add esp, 4
test eax, eax
je 0x1000579b
movzx ecx, word [edi + 4]
mov edx, 0x14c
cmp cx, dx
je 0x100056d7
mov edx, 0x8664
cmp cx, dx
jne 0x100056da
mov dword [edi + 0x28], eax
mov ecx, esi
call fcn.10004d20
test eax, eax
js 0x1000579b
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.1000e320
mov edi, eax
push esi
test edi, edi
je 0x1000579c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
push ecx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edi, dword [0x100201bc]
push esi
call edi
add esp, 4
push 0x34
xor esi, esi
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.1001f110
add esp, 0xc
push 0xa00000
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], str.emip
mov dword [esp + 0x40], str.InstallerData
call dword [0x100201c0]
add esp, 4
push 0xa00000
push esi
push eax
mov dword [esp + 0x4c], eax
call fcn.1001f110
add esp, 0xc
cmp dword [esp + 0x40], esi
jne 0x100057ba
push str.Err0
call dword [0x1002013c]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x100201bc]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 0xa00000
mov dword [esp + 0x58], 0x28
call fcn.10005060
mov edx, esi
add esp, 4
mov dword [esp + 0x1c], vtable.AssetsWriterToSplitResourceWrapper.0
mov dword [esp + 0x20], edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x78], 0
call sym.ModInstaller.dll_public:_bool___thiscall_InstallerPackageFile::Write_unsigned_long_long_unsigned___int64____class_IAssetsWriter__
push 1
call fcn.10005060
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x10005822
push 1
push eax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edx, dword [esp + 0x40]
push edx
call edi
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret