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

Disassembly:
sub esp, 0x84
mov eax, dword [0x4cb598]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, dword [esp + 0x8c]
mov ecx, dword [ebx]
push ebp
xor ebp, ebp
push esi
mov esi, dword [ebx + 0x1c]
push edi
mov edi, dword [esp + 0x9c]
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [0x4eb7f4]
mov dword [esp + 0x5c], ecx
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], ebp
je 0x438341
mov edx, dword [eax + 0x10]
cmp edx, ebp
mov dword [eax + 0x10], ecx
mov ecx, eax
mov eax, edx
jne 0x438333
cmp esi, ebp
mov dword [0x4eb7f4], ecx
je 0x43837a
jmp 0x438350
cmp byte [esi + 0x3c], 0
je 0x43836d
mov edx, dword [esi]
push edx
call fcn.00439e60
add esp, 4
test al, al
je 0x43836d
mov dword [esp + 0x30], esi
mov byte [esi + 0x3c], 0
mov esi, dword [esi + 0x24]
cmp esi, ebp
je 0x43837a
mov dword [esp + 0x18], esi
jmp 0x438350
cmp dword [ebx + 0x58], ebp
je 0x438422
mov ebp, dword [ebx + 0x5c]
mov esi, dword [ebx]
lea eax, [ebp + 0x18]
mov dword [esp + 0x10], eax
movzx eax, word [esi + 0x30]
shr eax, 1
push eax
push esi
mov byte [esi + 0x34], 0x60
mov word [esi + 0x32], 0
call fcn.00436090
neg ax
mov word [esi + 0x32], ax
lea eax, [ebp + 0x18]
push 1
push eax
call fcn.00479346
mov cx, word [esp + 0x20]
mov dl, byte [esp + 0x22]
mov esi, eax
or eax, 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [esi + 0x14], cx
mov byte [esi + 0x12], 0xf0
mov byte [esi + 0x16], dl
mov byte [esi + 0x17], 7
mov byte [esi + 0x13], 0
mov eax, dword [ebx + 0x58]
push ebp
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004765e0
mov edx, dword [esp + 0x2c]
push edx
push esi
call fcn.00437190
push 0
lea eax, [esp + 0x48]
push eax
push esi
push ebx
push edi
call fcn.00439d40
add esp, 0x38
test eax, eax
jl 0x438541
push esi
call fcn.00478435
add esp, 4
xor ebp, ebp
push ebx
call fcn.00437670
add esp, 4
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x438541
mov eax, dword [edi]
mov ebp, dword [edi + 8]
mov esi, dword [edi + 4]
sub ebp, eax
sub esi, eax
cmp dword [esp + 0x30], 0
mov dword [esp + 0x44], ebp
je 0x4385f2
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
add eax, 0x14
push eax
call fcn.004368b0
lea edx, [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push esi
call fcn.00437110
mov esi, eax
add esp, 0x10
cmp esi, ebp
jae 0x4384a7
push 0
push str.Insufficient_resources_exist_to_add_the_VTF_file
push reloc.OLEAUT32.dll_VariantCopy
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438d6e
mov ecx, dword [edi]
mov edx, dword [esp + 0x3c]
add ecx, esi
push edx
mov dword [edi + 8], ecx
mov dword [esp + 0x50], esi
call fcn.00476994
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4384ea
push 0
push str.FileBuffer_is_not_Allocated_
push reloc.OLEAUT32.dll_VariantCopy
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438d6e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push eax
push edx
push ebp
call fcn.004765e0
mov ecx, dword [esp + 0x3c]
push 0
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
push edi
call fcn.00439d40
add esp, 0x20
test eax, eax
mov dword [esp + 0x10], eax
jge 0x43858a
cmp eax, 0x80000002
jne 0x43854b
push 0
push str.Invalid_Parameter_for_GenFvImageLib_AddFile
push eax
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
push ebp
call fcn.00478435
add esp, 4
mov eax, 0xc00e
jmp 0x438d6e
cmp eax, 0x80000015
jne 0x43855c
push 0
push str.An_error_occurred
push eax
jmp 0x438529
cmp eax, reloc.OLEAUT32.dll_VariantCopy
jne 0x438538
push 0
push str.Insufficient_resources_exist_to_complete_the_add
push eax
push 0
push str.FWLIB
call fcn.0043a1a0
push ebp
call fcn.00478435
add esp, 0x18
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438d6e
mov edx, dword [edi]
add edx, esi
push ebp
mov dword [edi + 8], edx
call fcn.00478435
mov eax, dword [0x4eb7f4]
add esp, 4
test eax, eax
je 0x4385f2
mov eax, dword [eax]
mov eax, dword [eax]
add eax, 0x14
push eax
call fcn.004368b0
mov ecx, dword [0x4eb7f4]
mov edx, dword [ecx + 8]
sub edx, dword [ebx + 0x30]
add eax, 7
and eax, 0xfffffff8
lea eax, [edx + eax - 0x18]
add esp, 4
cmp eax, esi
jbe 0x4385f2
push 0
push str.Unable_to_add_the_VTF_file._VTF_file_collides_with_the_fixed_file.
push reloc.OLEAUT32.dll_VariantCopy
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438d6e
cmp dword [esp + 0x18], 0
je 0x438b18
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x3c], 0
je 0x43896b
mov ebx, dword [eax]
lea ecx, [ebx + 0x14]
push ecx
mov dword [esp + 0x3c], ebx
call fcn.004368b0
add esp, 4
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x3c], eax
jne 0x43863e
lea edx, [esp + 0x28]
push edx
push ebx
push esi
call fcn.00437110
add esp, 0xc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
xor ecx, ecx
add eax, dword [edx + 0x30]
adc ecx, dword [edx + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [0x4eb7f4]
test eax, eax
mov dword [esp + 0x34], ecx
je 0x43882d
mov eax, dword [eax]
mov eax, dword [eax]
add eax, 0x14
push eax
call fcn.004368b0
mov ebp, dword [0x4eb7f4]
mov ecx, dword [ebp + 8]
mov ebx, eax
lea eax, [ebp + 8]
add ebx, 7
and ecx, 7
xor edx, edx
add esp, 4
and ebx, 0xfffffff8
or ecx, edx
je 0x4386ac
add dword [eax], 1
adc dword [eax + 4], 0
mov ebp, dword [0x4eb7f4]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
and ecx, 7
xor edx, edx
or ecx, edx
jne 0x438690
xor edx, edx
mov ecx, ebx
add ecx, dword [eax]
adc edx, dword [eax + 4]
add ecx, 0xffffffe8
adc edx, 0xffffffff
cmp dword [esp + 0x30], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
jne 0x4386d3
cmp dword [esp + 0x34], edx
je 0x43882d
add ecx, 0x18
adc edx, 0
cmp dword [esp + 0x34], edx
ja 0x43882d
jb 0x4386ef
cmp dword [esp + 0x30], ecx
jae 0x43882d
mov ecx, dword [ebp]
mov eax, dword [ecx]
add eax, 0x14
push eax
call fcn.004368b0
mov ebp, eax
push ebp
call fcn.00476994
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x4384c5
mov edx, dword [0x4eb7f4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
push ebp
push ecx
push edx
call fcn.004765e0
mov eax, dword [0x4eb7f4]
mov ebp, dword [eax + 8]
mov ecx, dword [esp + 0x28]
sub ebp, dword [ecx + 0x30]
add esp, 0xc
sub ebp, 0x18
lea edx, [ebx + ebp]
cmp edx, esi
jae 0x4387ac
cmp dword [esp + 0x50], 0
jne 0x43875e
cmp dword [esp + 0x54], 0
jne 0x43875e
mov eax, esi
sub eax, ebx
sub eax, ebp
mov dword [esp + 0x48], eax
mov eax, dword [edi]
add eax, ebx
add eax, ebp
mov dword [edi + 8], eax
mov ecx, dword [0x4c99e8]
mov edx, dword [0x4c99ec]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x4c99f0]
sub esi, ebx
mov dword [eax + 4], edx
mov edx, dword [0x4c99f4]
sub esi, ebp
push esi
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00439f00
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x438a5f
add dword [esp + 0x14], 1
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
add eax, ebp
push edi
mov esi, ebp
mov dword [edi + 8], eax
call fcn.00439d40
add esp, 0x14
test eax, eax
mov dword [esp + 0x10], eax
jl 0x438a8a
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call fcn.00437050
push ebx
call fcn.00478435
add esp, 4
cmp dword [0x4eb7f4], 0
jne 0x438972
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
add eax, 0x14
push eax
call fcn.004368b0
add esp, 4
cmp eax, ebp
jle 0x438972
sub ebp, dword [esp + 0x44]
add dword [esp + 0x40], ebp
jmp 0x438972
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.00476994
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4384c5
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
push eax
push ebx
call fcn.004765e0
add esp, 0xc
cmp dword [esp + 0x2c], 0
jne 0x438874
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
call fcn.00437110
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
jae 0x4388da
cmp dword [esp + 0x2c], 0
jne 0x438895
mov dword [esp + 0x58], ebp
mov dword [esp + 0x2c], 1
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push edx
add esi, 0x80000000
push esi
call fcn.00437110
mov ecx, dword [edi]
sub eax, 0x80000000
add ecx, eax
mov dword [edi + 8], ecx
mov edx, dword [ebp + 0x20]
push ebx
mov esi, eax
mov dword [esp + 0x34], 0
mov byte [ebp + 0x3c], 0
mov dword [esp + 0x28], edx
call fcn.00478435
add esp, 0x10
jmp 0x438972
test ecx, ecx
je 0x438928
mov eax, dword [edi]
sub eax, ecx
add eax, esi
mov dword [edi + 8], eax
mov edx, dword [0x4c99e8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x4c99ec]
mov dword [eax + 4], edx
mov edx, dword [0x4c99f0]
mov dword [eax + 8], edx
mov edx, dword [0x4c99f4]
push ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00439f00
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x438b06
add dword [esp + 0x14], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
mov esi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
add eax, esi
push edi
mov dword [edi + 8], eax
call fcn.00439d40
add esp, 0x14
test eax, eax
mov dword [esp + 0x10], eax
jl 0x438abf
mov eax, dword [ebp + 0x20]
push ebx
mov byte [ebp + 0x3c], 0
mov dword [esp + 0x1c], eax
call fcn.00478435
add esp, 4
jmp 0x438972
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x18], 0
jne 0x438600
cmp dword [esp + 0x2c], 0
je 0x438b18
mov esi, dword [esp + 0x58]
mov ecx, dword [esi]
xor eax, eax
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov byte [esp + 0x90], al
push 0x25
lea eax, [esp + 0x70]
push eax
push ecx
call fcn.00436120
lea edx, [esp + 0x78]
push edx
push str.Insufficient_space_remains_to_add_the_file
push reloc.OLEAUT32.dll_VariantCopy
push 0
push str.FWLIB
call fcn.0043a1a0
push 0
push str.Insufficient_resources_exist_to_complete_the_add
push reloc.OLEAUT32.dll_VariantCopy
push 0
push str.FWLIB
call fcn.0043a1a0
mov ebx, dword [esp + 0x78]
add esp, 0x38
test ebx, ebx
jne 0x438a1d
cmp dword [esp + 0x14], ebx
jne 0x438a1d
add dword [edi + 8], 0xffffffe0
push esi
call fcn.00436fa0
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
push str.Volume_Size_Specified_t:_0x_X_bytes_n
call fcn.0047825b
mov eax, dword [edi + 4]
sub eax, dword [esp + 0x58]
sub eax, dword [edi + 8]
lea ecx, [eax + ebx + 0x48]
push ecx
push str.Required_size_t_t:_0x_X_bytes_n_n
call fcn.0047825b
add esp, 0x18
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438d6e
mov edx, dword [esp + 0x10]
push edx
call fcn.00478435
push 0
push str.Error_Adding_Padfile_after_Fixed_FFS
push esi
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x18
mov eax, 0xc00f
jmp 0x438d6e
cmp eax, 0x80000002
jne 0x438abf
push 0
push str.Invalid_Parameter_for_GenFvImageLib_AddFile
push SysReAllocStringLen
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
push ebx
call fcn.00478435
add esp, 4
mov eax, 0xc00e
jmp 0x438d6e
cmp eax, 0x80000015
jne 0x438ad4
push 0
push str.An_error_occurred
push 0x80000015
jmp 0x438a9d
cmp eax, reloc.OLEAUT32.dll_VariantCopy
jne 0x438aac
push 0
push str.Insufficient_resources_exist_to_complete_the_add
push reloc.OLEAUT32.dll_VariantCopy
push 0
push str.FWLIB
call fcn.0043a1a0
push ebx
call fcn.00478435
add esp, 0x18
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438d6e
push ebx
call fcn.00478435
push 0
push str.Error_Adding_Padfile_after_aligned_firmware_file
jmp 0x438a70
mov eax, dword [0x4eb7f4]
test eax, eax
je 0x438c3c
mov edx, dword [eax]
mov eax, dword [edx]
add eax, 0x14
push eax
call fcn.004368b0
mov ebp, eax
push ebp
call fcn.00476994
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4384c5
mov eax, dword [0x4eb7f4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebp
push edx
push ebx
call fcn.004765e0
mov ecx, dword [0x4eb7f4]
mov edx, dword [esp + 0x28]
lea eax, [ebp + 7]
mov ebp, dword [ecx + 8]
sub ebp, dword [edx + 0x30]
and eax, 0xfffffff8
sub ebp, 0x18
lea ecx, [eax + ebp]
add esp, 0xc
cmp ecx, esi
jae 0x438bc5
mov edx, dword [edi]
add edx, ebp
add edx, eax
mov dword [edi + 8], edx
mov edx, dword [0x4c99e8]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x4c99ec]
mov dword [ecx + 4], edx
mov edx, dword [0x4c99f0]
sub esi, ebp
sub esi, eax
mov dword [ecx + 8], edx
mov edx, dword [0x4c99f4]
push esi
push edi
mov dword [ecx + 0xc], edx
call fcn.00439f00
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x438c07
add dword [esp + 0x14], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
add eax, ebp
push edi
mov esi, ebp
mov dword [edi + 8], eax
call fcn.00439d40
mov ebp, eax
add esp, 0x14
test ebp, ebp
jl 0x438c19
push ebx
call fcn.00478435
add esp, 4
call fcn.00437050
mov eax, dword [0x4eb7f4]
test eax, eax
jne 0x438b25
jmp 0x438c40
push ebx
call fcn.00478435
push 0
push str.Error_Adding_Padfile_after_Fixed_firmware_file
jmp 0x438a70
cmp ebp, 0x80000002
je 0x438a91
cmp ebp, 0x80000015
je 0x438ac6
cmp ebp, reloc.OLEAUT32.dll_VariantCopy
jmp 0x438ad9
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
lea eax, [ecx + 0x18]
cmp esi, eax
jb 0x438cb4
mov edx, dword [edi]
add edx, ecx
mov dword [edi + 8], edx
mov edx, dword [0x4c99e8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x4c99ec]
mov dword [eax + 4], edx
mov edx, dword [0x4c99f0]
sub esi, ecx
mov dword [eax + 8], edx
mov edx, dword [0x4c99f4]
push esi
push edi
mov dword [eax + 0xc], edx
call fcn.00439f00
mov ebp, eax
add esp, 0x18
test ebp, ebp
jge 0x438cad
push 0
push str.Error_Adding_Padfile_at_beginning_of_volume
push ebp
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
mov eax, 0xc00f
jmp 0x438d6e
add dword [esp + 0x14], 1
jmp 0x438cb8
cmp esi, ecx
jne 0x438c8c
cmp dword [esp + 0x14], 0
jne 0x438ce0
push 0
push str.Error_Adding_Padfile_at_beginning_of_volume
push ebp
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
mov eax, 0xc00e
jmp 0x438d6e
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
add eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x1c]
push ecx
push edi
push ebx
mov dword [edi + 8], eax
call fcn.00437920
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x438d20
push 0
push str.Error_Processing_VTF
push esi
push 0
push str.FWLIB
call fcn.0043a1a0
add esp, 0x14
mov eax, 0x80000015
jmp 0x438d6e
push ebx
call fcn.00436340
add esp, 4
cmp dword [eax + 0x4c], 0
je 0x438d6c
mov edx, dword [0x4c9a28]
mov ecx, dword [0x4c9a2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x4c9a30]
mov dword [eax + 4], ecx
mov ecx, dword [0x4c9a34]
mov dword [eax + 8], edx
push edi
mov dword [eax + 0xc], ecx
call fcn.004377f0
add esp, 0x14
test eax, eax
jne 0x438d6c
push eax
push str.Error_Changing_pad_file_GUID_for_APTIO_V_image
jmp 0x438d09
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00475cba
add esp, 0x84
ret