Function at 0x4589c0
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5108a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x14
mov dword [esp + 0x3c], 0
call fcn.004e7273
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x458a66
mov edx, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebx + 4], 0xffffffff
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 8], eax
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0xc], eax
mov word [ebx + 0x10], 1
jmp 0x458a68
xor ebx, ebx
mov edi, dword [ebp + 8]
push str.inputFilePath
mov ecx, edi
call fcn.00439e70
cmp eax, 0x5781c0
je 0x458ff4
push str.inputFilePath
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 4
jne 0x458ff4
push str.inputFilePath
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 4
mov dword [esp + 0x1c], eax
je 0x458ac9
push 0x2a9
push str...WebInstallerUtilsjson_value.cpp
push str.type___stringValue
call fcn.004eb62b
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [eax]
test edx, edx
jne 0x458ad3
xor ecx, ecx
jmp 0x458aeb
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458ae0
sub ecx, dword [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0042c870
mov edx, ebx
lea ecx, [esp + 0x10]
call fcn.0042bf30
push str.outputFolder
mov ecx, edi
call fcn.00439e70
cmp eax, 0x5781c0
je 0x458f37
push str.outputFolder
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 4
jne 0x458f37
push str.outputFolder
mov ecx, edi
call fcn.00439e70
mov esi, eax
cmp byte [esi + 8], 4
je 0x458b59
push 0x2a9
push str...WebInstallerUtilsjson_value.cpp
push str.type___stringValue
call fcn.004eb62b
add esp, 0xc
mov edx, dword [esi]
test edx, edx
jne 0x458b63
xor ecx, ecx
jmp 0x458b71
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458b68
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0042c870
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x458f2d
cmp ecx, edx
jg 0x458f2d
mov al, byte [ecx + eax]
cmp al, 0x5c
je 0x458bad
push 1
push 0x54e728
lea ecx, [esp + 0x18]
call fcn.00435a10
lea edx, [ebx + 8]
lea ecx, [esp + 0x10]
call fcn.0042bf30
push str.onFinishId
mov ecx, edi
call fcn.00439e70
or esi, 0xffffffff
cmp eax, 0x5781c0
je 0x458bfc
push str.onFinishId
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 1
jne 0x458bfc
push str.onFinishId
mov ecx, edi
call fcn.00439e70
mov ecx, eax
call fcn.00439630
mov dword [ebx + 4], eax
jmp 0x458d88
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, str.onFinishId_not_exist
mov byte [esp + 0x38], 9
test eax, 0xffff0000
jne 0x458c42
movzx ecx, ax
call fcn.0041fcd0
test eax, eax
je 0x458c50
mov edx, str.onFinishId_not_exist
movzx ecx, dx
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00420bb0
jmp 0x458c50
push str.onFinishId_not_exist
lea ecx, [esp + 0x1c]
call fcn.00420650
mov byte [esp + 0x38], 0xa
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, str.extractWithGzip
mov byte [esp + 0x38], 0xb
test eax, 0xffff0000
jne 0x458c9b
movzx ecx, ax
call fcn.0041fcd0
test eax, eax
je 0x458cab
mov edx, str.extractWithGzip
movzx ecx, dx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00420bb0
jmp 0x458cab
push 0xf
push str.extractWithGzip
lea ecx, [esp + 0x1c]
call fcn.00420c80
mov byte [esp + 0x38], 0xc
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xd
call fcn.004215a0
add esp, 4
mov ecx, eax
mov byte [esp + 0x38], 0xe
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xc], 0
je 0x458d00
push 2
push ecx
lea ecx, [esp + 0x1c]
push ecx
add eax, 8
push eax
call fcn.004216b0
mov byte [esp + 0x38], 0xd
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458d22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0xc
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458d44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0xa
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458d66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458d88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.shouldDecrypt
mov ecx, edi
call fcn.00439e70
cmp eax, 0x5781c0
je 0x458dc3
push str.shouldDecrypt
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 5
jne 0x458dc3
push str.shouldDecrypt
mov ecx, edi
call fcn.00439e70
mov ecx, eax
call fcn.00439930
mov byte [ebx + 0x10], al
push str.deleteDecrypted
mov ecx, edi
call fcn.00439e70
cmp eax, 0x5781c0
je 0x458dfe
push str.deleteDecrypted
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 5
jne 0x458dfe
push str.deleteDecrypted
mov ecx, edi
call fcn.00439e70
mov ecx, eax
call fcn.00439930
mov byte [ebx + 0x11], al
lea eax, [esp + 0x28]
push eax
push 0
push ebx
push 0x448100
push 0
push 0
mov dword [esp + 0x40], 0
call fcn.004e7ea4
add esp, 0x18
test eax, eax
jne 0x458f21
test ebx, ebx
je 0x458e3b
mov ecx, ebx
call fcn.004581f0
push ebx
call fcn.004e71fd
add esp, 4
push str._beginthreadex_error
lea ecx, [esp + 0x1c]
call fcn.00420550
push str.extractWithGzip
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0xf
call fcn.004204a0
mov byte [esp + 0x38], 0x10
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0x11
call fcn.004215a0
add esp, 4
mov ecx, eax
mov byte [esp + 0x38], 0x12
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xc], 0
je 0x458eb1
push 2
push ecx
lea ecx, [esp + 0x24]
push ecx
add eax, 8
push eax
call fcn.004216b0
mov byte [esp + 0x38], 0x11
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458ed3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [esp + 0x38], 0x10
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458ef1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0xf
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458f13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0
mov edx, dword [esp + 0x18]
jmp 0x4590d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4590eb
push 0x80070057
call fcn.0041fba0
push str.outputFolder_error
lea ecx, [esp + 0x20]
call fcn.00420550
push str.extractWithGzip
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 5
call fcn.004204a0
mov byte [esp + 0x38], 6
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 7
call fcn.004215a0
add esp, 4
mov byte [esp + 0x38], 8
cmp dword [esi + 0xc], 0
je 0x458fa7
push 2
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 8]
push eax
call fcn.004216b0
mov byte [esp + 0x38], 7
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x458fcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [esp + 0x38], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458fea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 5
jmp 0x4590ac
push str.inputFilePath_error
lea ecx, [esp + 0x20]
call fcn.00420550
push str.extractWithGzip
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004204a0
mov byte [esp + 0x38], 2
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
call fcn.004215a0
add esp, 4
mov byte [esp + 0x38], 4
cmp dword [esi + 0xc], 0
je 0x459064
push 2
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 8]
push eax
call fcn.004216b0
mov byte [esp + 0x38], 3
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x459089
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [esp + 0x38], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4590a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 1
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4590c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4590eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x45910e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4