Function at 0x47124f
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0x394
mov eax, 0x4c4ad6
call fcn.0049f5ab
mov eax, dword [ebp + 8]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x280], eax
xor ebx, ebx
push str.XpiInstaller_ExtractXpiToTempFolder
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], ebx
call fcn.00404bd0
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 1
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], bl
call fcn.004058b3
push 0x104
push edi
push 0x4d5d14
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x274]
cmp eax, ebx
ja 0x471310
push str.XpiInstaller_ExtractXpiToTempFolder___ERROR:
call fcn.00404bd0
mov byte [ebp - 4], 2
push 0x1e
pop esi
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.004018c5
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x274]
push 1
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.004058b3
mov eax, esi
lea esp, [ebp - 0x3b0]
call fcn.0049f62e
ret
push str.XpiInstaller_Trying_to_ExtractFileNameFromUrl
call fcn.00404bd0
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 3
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], bl
call fcn.004058b3
lea eax, [ebp - 0x118]
push eax
call fcn.0047097b
pop ecx
test al, al
jne 0x471368
push str.XpiInstaller_ExtractXpiToTempFolder___INSTALLER_EXTRACT_XPI_FILENAME_ERROR:
lea ecx, [ebp - 0x274]
call fcn.00404bd0
mov byte [ebp - 4], 4
push 0x1f
jmp 0x4712d9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x471384
xor esi, esi
jmp 0x4713a1
lea eax, [esi + esi]
call fcn.004a0cd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x118]
push ecx
mov esi, eax
call fcn.0040123d
mov esi, eax
push str.XpiInstaller_HttpGetFile_sFileName
lea ecx, [ebp - 0x274]
call fcn.00404bd0
push esi
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 5
call fcn.00404bd0
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 6
call fcn.00401985
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x29c]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], bl
call fcn.004058b3
cmp edi, ebx
je 0x471409
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x47140d
xor esi, esi
jmp 0x471424
lea eax, [esi + esi]
call fcn.004a0cd0
mov eax, esp
push 3
push esi
push edi
mov esi, eax
call fcn.0040123d
mov esi, eax
push str.XpiInstaller_HttpGetFile_sTempDir
lea ecx, [ebp - 0x274]
call fcn.00404bd0
push esi
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 7
call fcn.00404bd0
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 8
call fcn.00401985
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x29c]
call fcn.004058b3
push ebx
push esi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], bl
call fcn.004058b3
push str.XpiInstaller_HttpGetFile_sXpiResource
lea ecx, [ebp - 0x274]
call fcn.00404bd0
push dword [ebp - 0x278]
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 9
call fcn.0041c01b
mov byte [ebp - 4], 0xa
push dword [eax]
lea ecx, [ebp - 0x29c]
call fcn.00404bd0
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 0xb
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x29c]
call fcn.004058b3
lea eax, [ebp - 0x39c]
cmp dword [ebp - 0x3a0], eax
je 0x4714e7
push dword [ebp - 0x3a0]
call fcn.0049f900
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x274]
call fcn.004058b3
push ebx
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x240], 7
call fcn.00405ece
push edi
push dword [ebp - 0x278]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xc
call fcn.00470a87
pop ecx
pop ecx
test al, al
jne 0x471555
push edi
lea ecx, [ebp - 0x118]
call fcn.004722f6
pop ecx
mov dword [ebp - 0x278], eax
cmp eax, ebx
je 0x471555
push ebx
push esi
lea ecx, [ebp - 0x258]
call fcn.004058b3
mov esi, dword [ebp - 0x278]
jmp 0x4712f7
lea edx, [ebp - 0x220]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47155f
lea edi, [ebp - 0x220]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x471570
mov esi, 0x4f6f34
lea eax, [ebp - 0x118]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x471587
lea edi, [ebp - 0x220]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x471597
push dword [ebp - 0x27c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x23c]
call fcn.00404922
mov esi, 0x4f6f34
push esi
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 0xd
call fcn.0041c045
push dword [ebp - 0x280]
lea eax, [ebp - 0x23c]
push eax
call fcn.0041c045
cmp dword [ebp - 0x224], 0x10
mov eax, dword [ebp - 0x238]
jae 0x4715fb
lea eax, [ebp - 0x238]
push eax
call fcn.00470792
cmp dword [ebp - 0x224], 0x10
mov eax, dword [ebp - 0x238]
pop ecx
jae 0x471617
lea eax, [ebp - 0x238]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x274]
test eax, eax
jne 0x471673
push str.XpiInstaller_ExtractXpiToTempFolder___INSTALLER_EXTRACT_XPI_CREATE_FOLDER_ERROR:
call fcn.00404bd0
push 0x21
pop esi
lea eax, [ebp - 0x274]
push esi
push eax
mov byte [ebp - 4], 0xe
call fcn.004018c5
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x274]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp - 0x23c]
call fcn.00404ec6
push ebx
push 1
lea ecx, [ebp - 0x258]
jmp 0x4712f2
push str.XpiInstaller_CreateDirectory_OK
call fcn.00404bd0
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 0xf
call fcn.004017f5
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xd
call fcn.004058b3
push esi
lea eax, [ebp - 0x23c]
push eax
call fcn.0041c045
cmp dword [ebp - 0x224], 0x10
mov edx, dword [ebp - 0x238]
jae 0x4716c4
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.00470e1c
mov esi, eax
cmp esi, ebx
je 0x4717c4
push str.XpiInstaller_ExtractXpiToTempFolder__UnZipFile_FAILED__ERROR:
lea ecx, [ebp - 0x274]
call fcn.00404bd0
lea eax, [ebp - 0x274]
push esi
push eax
mov byte [ebp - 4], 0x10
call fcn.004018c5
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xd
call fcn.004058b3
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x118]
call fcn.004722f6
lea ecx, [ebp - 0x274]
mov esi, eax
mov dword [esp], str.XpiInstaller_ExtractXpiToTempFolder__Lets_extract_Xpi_again._ret
call fcn.00404bd0
lea eax, [ebp - 0x274]
push esi
push eax
mov byte [ebp - 4], 0x11
call fcn.004018c5
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xd
call fcn.004058b3
cmp esi, ebx
jne 0x4717b0
cmp dword [ebp - 0x224], 0x10
mov edx, dword [ebp - 0x238]
jae 0x47176f
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.00470e1c
mov esi, eax
cmp esi, ebx
je 0x4717c4
push str.XpiInstaller_ExtractXpiToTempFolder___2nd_try__UnZipFile_FAILED__ERROR:
lea ecx, [ebp - 0x274]
call fcn.00404bd0
lea eax, [ebp - 0x274]
push esi
push eax
mov byte [ebp - 4], 0x12
call fcn.004018c5
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x274]
call fcn.004058b3
push ebx
push edi
lea ecx, [ebp - 0x23c]
call fcn.00404ec6
push ebx
push edi
jmp 0x471668
push str.XpiInstaller_ExtractXpiToTempFolder_OK
lea ecx, [ebp - 0x274]
call fcn.00404bd0
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 0x13
call fcn.004017f5
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x274]
call fcn.004058b3
lea eax, [ebp - 0x220]
push eax
call fcn.004a3825
cmp dword [ebp - 0x224], 0x10
pop ecx
mov ecx, dword [ebp - 0x238]
jae 0x471814
lea ecx, [ebp - 0x238]
mov edx, dword [ebp - 0x27c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x47181a
push ebx
push edi
lea ecx, [ebp - 0x23c]
call fcn.00404ec6
push ebx
push edi
lea ecx, [ebp - 0x258]
call fcn.004058b3
xor esi, esi
jmp 0x4712f7