Function at 0x40cb0b
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
push ebp
sub esp, 0x150
lea ebp, [esp - 4]
mov eax, dword [0x61f060]
xor eax, ebp
mov dword [ebp + 0x150], eax
push 0x90
mov eax, 0x5769ca
call fcn.0048905d
mov edi, dword [ebp + 0x15c]
lea eax, [ebp + 0x134]
push edi
push eax
mov esi, ecx
call fcn.0041ab0d
pop ecx
pop ecx
xor ebx, ebx
push str.Updating_bootstrapper_with_media_file:
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], ebx
call fcn.00404d33
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 1
call fcn.004197da
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 2
call fcn.00403eb5
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004031b4
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp + 0x54]
push edx
push 4
call dword [eax + 4]
lea eax, [ebp + 0x38]
push edi
push eax
call fcn.00418dde
pop ecx
pop ecx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.00403741
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 0x38]
call fcn.00403721
mov ecx, dword [ebp - 0x14]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp + 0x1c]
push eax
call fcn.0040bfb2
add esp, 0x14
push str.MEDIA_COMP_
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00404d33
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 5
call fcn.00403eb5
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004190eb
pop ecx
pop ecx
push eax
lea eax, [ebp + 0xc4]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00404ce4
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040321f
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.00401848
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
mov byte [ebp - 4], 9
call fcn.0040454a
lea eax, [ebp + 0x8c]
push eax
call fcn.0040c828
add esp, 0x20
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], ebx
call fcn.00406e3f
lea eax, [ebp + 0x134]
push eax
lea eax, [ebp + 0xe0]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00408a2c
push 0x5af4a4
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xc
call fcn.00404570
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x134]
call fcn.0041a275
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xd
call fcn.0040414a
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.0040321f
lea ecx, [ebp - 0x3c]
call fcn.00438727
push 0x5af7a8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.00404d55
lea eax, [ebp + 0x8c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040c14a
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040321f
push str.Component_
lea ecx, [ebp - 0x30]
call fcn.00404d55
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.0040c14a
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040321f
push str.FileName
lea ecx, [ebp - 0x30]
call fcn.00404d55
lea eax, [ebp + 0xe0]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
call fcn.0040c14a
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040321f
cmp dword [edi + 0x18], 8
jb 0x40cd90
mov edi, dword [edi + 4]
jmp 0x40cd93
add edi, 4
push ebx
push ebx
push 3
push ebx
push ebx
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40cdde
push str.Unable_to_open_file_for_size
lea ecx, [ebp - 0x30]
call fcn.00404d33
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x84]
call fcn.00404c55
push 0x5f01b8
lea eax, [ebp - 0x84]
push eax
call fcn.00488b8b
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x50]
push str.FileSize
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], eax
call fcn.00404d55
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x13
call fcn.0040c185
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040321f
push str.Sequence
lea ecx, [ebp - 0x30]
call fcn.00404d55
push dword [esi + 8]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call fcn.0040c185
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040321f
push str.Attributes
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 0x4000
call fcn.00404d55
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x15
call fcn.0040c185
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040321f
push 0x5af7a8
lea ecx, [ebp - 0x30]
call fcn.00404d55
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov byte [ebp - 4], 0x16
call fcn.00417fc8
add esp, 0xc
neg al
sbb al, al
inc al
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0xe
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.0040321f
cmp byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
je 0x40cef1
push str.Unable_to_add_File_record
call fcn.00404d33
mov byte [ebp - 4], 0x17
jmp 0x40cdbe
push str.Added_File_record
call fcn.00404d33
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 4
mov byte [ebp - 4], 0x18
call dword [eax + 4]
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.004031b4
push ebx
lea ecx, [ebp + 0xfc]
mov dword [ebp + 0x114], 7
call fcn.00401848
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 0x19
call fcn.0041acf2
lea ecx, [ebp + 0xfc]
push ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1a
call fcn.0040c456
neg al
sbb al, al
inc al
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0x19
call fcn.004197d0
cmp byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
je 0x40cf83
push str.Unable_to_create_directory_table_entry
call fcn.00404d33
mov byte [ebp - 4], 0x1b
jmp 0x40cdbe
push str.Confirmed_Directory_table_record
call fcn.00404d33
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 4
mov byte [ebp - 4], 0x1c
call dword [eax + 4]
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
call fcn.004031b4
lea ecx, [ebp - 0x48]
call fcn.00438727
push str.Component
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1d
call fcn.00404d55
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1e
call fcn.0040c14a
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.0040321f
push ebx
lea ecx, [ebp + 0x118]
mov dword [ebp + 0x130], 7
call fcn.00401848
lea eax, [ebp + 0x118]
push eax
mov byte [ebp - 4], 0x1f
call fcn.00420c22
test al, al
pop ecx
jne 0x40d028
push str.Unable_to_create_GUID
lea ecx, [ebp - 0x30]
call fcn.00404d33
mov byte [ebp - 4], 0x20
jmp 0x40cdbe
push 0x5af670
lea ecx, [ebp + 0xa8]
call fcn.00404d55
lea eax, [ebp + 0x118]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x21
call fcn.00404ce4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0x22
call fcn.0040414a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0040321f
push 0x5af66c
lea ecx, [ebp + 0xa8]
call fcn.00404570
push str.ComponentId
lea ecx, [ebp - 0x30]
call fcn.00404d55
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x23
call fcn.0040c14a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0040321f
push str.Directory_
lea ecx, [ebp - 0x30]
call fcn.00404d55
lea eax, [ebp + 0xfc]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x24
call fcn.0040c14a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0040321f
push str.Attributes
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.00404d55
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x25
call fcn.0040c185
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0040321f
push str.KeyPath
lea ecx, [ebp - 0x30]
call fcn.00404d55
mov byte [ebp - 4], 0x26
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040c14a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0040321f
push str.Component
lea ecx, [ebp - 0x30]
call fcn.00404d55
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov byte [ebp - 4], 0x27
call fcn.00417fc8
add esp, 0xc
neg al
sbb al, al
push ebx
inc al
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0x21
call fcn.0040321f
cmp byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
je 0x40d19f
push str.Unable_to_add_Component_record
call fcn.00404d33
mov byte [ebp - 4], 0x28
jmp 0x40cdbe
push str.Added_Component_record
call fcn.00404d33
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 4
mov byte [ebp - 4], 0x29
call dword [eax + 4]
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.004031b4
lea ecx, [ebp - 0x5c]
call fcn.00438727
push str.Feature_
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2a
call fcn.00404d55
push 0x6248ec
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x2b
call fcn.0040c14a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2a
call fcn.0040321f
push str.Component_
lea ecx, [ebp - 0x30]
call fcn.00404d55
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x2c
call fcn.0040c14a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2a
call fcn.0040321f
push str.FeatureComponents
lea ecx, [ebp - 0x30]
call fcn.00404d55
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov byte [ebp - 4], 0x2d
call fcn.00417fc8
add esp, 0xc
neg al
sbb al, al
push ebx
inc al
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0x2a
call fcn.0040321f
cmp byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
je 0x40d28f
push str.Failed_to_update_feature_components
call fcn.00404d33
mov byte [ebp - 4], 0x2e
jmp 0x40cdbe
push str.Added_FeatureComponents_table
call fcn.00404d33
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 4
mov byte [ebp - 4], 0x2f
call dword [eax + 4]
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.004031b4
mov esi, dword [esi + 8]
inc dword [esi]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x21
call fcn.00407a9c
push ebx
push edi
lea ecx, [ebp + 0xa8]
call fcn.0040321f
push ebx
push edi
lea ecx, [ebp + 0x118]
call fcn.0040321f
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x19
call fcn.00407a9c
push ebx
push edi
lea ecx, [ebp + 0xfc]
call fcn.0040321f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00407a9c
push ebx
push edi
lea ecx, [ebp + 0xe0]
call fcn.0040321f
lea ecx, [ebp - 0x94]
call fcn.004a4f9a
push ebx
push edi
lea ecx, [ebp + 0x8c]
call fcn.0040321f
push ebx
push edi
lea ecx, [ebp]
call fcn.0040321f
push ebx
push edi
lea ecx, [ebp + 0xc4]
call fcn.0040321f
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.004031b4
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.004031b4
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.004031b4
push ebx
push edi
lea ecx, [ebp + 0x54]
call fcn.004031b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x134]
call fcn.004197d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x150]
xor ecx, ebp
call fcn.00488a42
add ebp, 0x154
leave
ret 4